Skip to content

safe_join keeps directory="" as relative path#2349

Merged
davidism merged 1 commit into
mainfrom
safe_join-empty
Mar 15, 2022
Merged

safe_join keeps directory="" as relative path#2349
davidism merged 1 commit into
mainfrom
safe_join-empty

Conversation

@davidism
Copy link
Copy Markdown
Member

When using send_from_directory, which uses safe_join, if directory="" is given, it was discarded and the first untrusted path component could become the first component if it was a Windows drive-relative path.

@davidism davidism added the security Pull requests that address a security vulnerability label Mar 15, 2022
@davidism davidism added this to the 2.1.0 milestone Mar 15, 2022
@davidism davidism merged commit 365ee7e into main Mar 15, 2022
@davidism davidism deleted the safe_join-empty branch March 15, 2022 22:01
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Mar 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

security Pull requests that address a security vulnerability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant