CVE-2026-42196 Details
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.
A relative path traversal vulnerability has been identified in the S3FileMiddleware component of django-s3file, a file upload input tool for Django and Amazon S3. This vulnerability exists in versions of django-s3file through 7.0.1. It allows attackers to manipulate requests to escape pre-signed upload locations, causing the Django application to load files from arbitrary locations into request.FILES. Depending on the application's file handling procedures, this could result in confidentiality and integrity issues.
Users are advised to update to django-s3file version 7.0.2 or later.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 12, 2026CISA-ADP
Assessed May 13, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/codingjoe/django-s3file/security/advisories/GHSA-67qg-7284-2277 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
| CWE-26 | Path Traversal: '/dir/../filename' | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| codingjoe django-s3file | <= 7.0.1 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 12, 2026 | New CVE Received | [email protected] |
Volerion