# CVE-2026-42196: django-s3file: Relative path traversal

- Severity: Critical 9.9 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.56%, higher than 48% of CVEs (2026-12-01)
- Published: 2026-05-05T20:05:49.000Z
- Modified: 2026-10-27T16:30:07.533Z
- Also known as: GHSA-67qg-7284-2277, PYSEC-2026-328
- Weaknesses: CWE-22, CWE-23, CWE-26
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

django-s3file is a lightweight file upload input for Django and Amazon S3. Prior to 7.0.2, 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. This vulnerability is fixed in 7.0.2.

(As written by CVE List.)

## Affected

- codingjoe django-s3file: < 7.0.2
- django-s3file (PyPI): before 7.0.2

## Every score

- GitHub_M: CVSS:4.0 9.9 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N`

## References

- <https://github.com/codingjoe/django-s3file/security/advisories/GHSA-67qg-7284-2277> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42196> (advisory)
- <https://github.com/codingjoe/django-s3file> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/django-s3file/PYSEC-2026-328.yaml> (web)
- <https://pypi.org/project/django-s3file> (package, web)
- <https://github.com/advisories/GHSA-67qg-7284-2277> (advisory)

## Sources

- CVE List: [CVE-2026-42196](https://www.cve.org/CVERecord?id=CVE-2026-42196), CVE Terms of Use, modified 2026-05-13
- GitHub Advisory Database: [GHSA-67qg-7284-2277](https://github.com/advisories/GHSA-67qg-7284-2277), CC-BY-4.0, modified 2026-10-27
- NVD: [CVE-2026-42196](https://nvd.nist.gov/vuln/detail/CVE-2026-42196), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-328](https://osv.dev/vulnerability/PYSEC-2026-328), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-42196 · Whole record: https://cve.day/CVE-2026-42196.json · Rebuilt by cve.day 2026-11-25T22:59:21.504Z
