CVE-2026-42196
JSON

9.9critical

django-s3file: Relative path traversal

Severity
9.9critical CVSS:4.0 by GitHub_M
Exploit likelihood
0.56% (higher than 48% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-67qg-7284-2277PYSEC-2026-328

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.

Affected

Product or packageVersionsReported by
codingjoe django-s3file< 7.0.2CVE List
django-s3file (PyPI)before 7.0.2GitHub Advisory Database, PyPA Advisory Database

All scores

GitHub_M9.9critical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N
GitHubcritical CVSS:4.0CVSS: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 DatabaseNot scored CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N

Classification

CWE-22CWE-23CWE-26

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
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.

NVD (es)

django-s3file es una entrada ligera de carga de archivos para Django y Amazon S3. Antes de la versión 7.0.2, S3FileMiddleware es vulnerable a ataques de salto de ruta relativo, donde un atacante puede usar una solicitud modificada para escapar de las ubicaciones de carga pre-firmadas y hacer que la aplicación Django cargue archivos desde ubicaciones aleatorias en request.FILES. Dependiendo de cómo se manejen los archivos, esto puede llevar a problemas de confidencialidad e integridad. Esta vulnerabilidad se corrige en la versión 7.0.2.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-42196 changed 2026-05-13CVE Terms of Use
GitHub Advisory DatabaseGHSA-67qg-7284-2277 changed 2026-10-27CC-BY-4.0
NVDCVE-2026-42196 changed 2026-10-26Public domain
PyPA Advisory DatabasePYSEC-2026-328 changed 2026-07-13CC-BY-4.0