Skip to content

Sanitize filename to mitigate path traversal risk - #172

Merged
jomadec merged 1 commit into
ansys:mainfrom
ThomasAuzinger:patch-3
Aug 18, 2026
Merged

Sanitize filename to mitigate path traversal risk#172
jomadec merged 1 commit into
ansys:mainfrom
ThomasAuzinger:patch-3

Conversation

@ThomasAuzinger

Copy link
Copy Markdown
Contributor

If chunk.file_name is an absolute path (e.g., /etc/passwd), os.path.join discards the base path.

If `chunk.file_name` is an absolute path (e.g., `/etc/passwd`), `os.path.join` discards the base path.
@jomadec
jomadec merged commit b05d080 into ansys:main Aug 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants