Merge pull request #4417 from pipecat-ai/mb/resolve-runner-filepath

This commit is contained in:
Mark Backman
2026-05-04 18:09:34 -04:00
committed by GitHub
5 changed files with 103 additions and 5 deletions

View File

@@ -0,0 +1 @@
- Fixed a path traversal issue in the development runner's `/files/{filename:path}` download endpoint. Previously, when the runner was started with `--folder`, a request like `/files/..%2F..%2Fetc%2Fpasswd` could escape the configured folder because `%2F`-encoded separators bypassed Starlette's path normalisation. The endpoint now resolves the joined path and rejects any filename that escapes the allowed base with a 403, and also returns 404 (instead of an implicit `null` 200) when `--folder` is unset.