CVE-2026-42196: django-s3file is vulnerable to relative path traversal
Affects django-s3fileSource GCVE Database
Not known to be exploited · CVSS 9.9 Critical : upgrade to 7.0.2 as a priority.
Data as of 27 Oct 2026, 17:41 UTC
- Patch
- Available – fixed in 7.0.2
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 12 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade django-s3file to 7.0.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPIdjango-s3file | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Users should update django-s3file to version 7.0.2 or later, where this vulnerability is patched. Applying this official fix fully mitigates the risk of relative path traversal attacks in S3FileMiddleware.
Description
The django-s3file package contains a critical vulnerability (CVE-2026-42196) in its S3FileMiddleware component that allows relative path traversal attacks. An attacker can manipulate requests to escape intended pre-signed upload directories and cause the Django application to load files from arbitrary locations into request.FILES. This can lead to confidentiality and integrity breaches depending on file handling. A patch is available in version 7.0.2 and users are urged to update.
References
- github.com/codingjoe/django-s3file/security/advisories/GHSA-67qg-7284-2277 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-42196 (opens in a new tab)
- github.com/codingjoe/django-s3file (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/django-s3file/PYSEC-2026-328.yaml (opens in a new tab)
- pypi.org/project/django-s3file (opens in a new tab)