GHSA-67qg-7284-2277
django-s3file is vulnerable to relative path traversal
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| PyPI | django-s3file | < 7.0.2 | 7.0.2 |
Details
As written in the advisory (Markdown source, shown as plain text).
### Impact
`S3FileMiddleware` is vulnerable to relative path traversal attacks, where an attacker can use a modified request to escape pre-signed upload locations and have the Django application load files from random locations into `request.FILES`
Depending on how files are handled, this may lead to confidentiality and integrity issues.
### Patches
Django-S3File urges all users to update to a patched version >=7.0.2.
References
External links from the advisory. They lead to third-party sites.
- https://github.com/codingjoe/django-s3file/security/advisories/GHSA-67qg-7284-2277
- https://nvd.nist.gov/vuln/detail/CVE-2026-42196
- https://github.com/codingjoe/django-s3file
- https://github.com/pypa/advisory-database/tree/main/vulns/django-s3file/PYSEC-2026-328.yaml
- https://pypi.org/project/django-s3file