Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. django-s3file
  4. ›
  5. CVE-2026-42196

CVE-2026-42196: django-s3file is vulnerable to relative path traversal

May 5, 2026 (updated October 27, 2026)

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.

References

  • github.com/advisories/GHSA-67qg-7284-2277
  • github.com/codingjoe/django-s3file/security/advisories/GHSA-67qg-7284-2277
  • github.com/pypa/advisory-database/tree/main/vulns/django-s3file/PYSEC-2026-328.yaml
  • nvd.nist.gov/vuln/detail/CVE-2026-42196
  • pypi.org/project/django-s3file

Code Behaviors & Features

Detect and mitigate CVE-2026-42196 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 7.0.2

Fixed versions

  • 7.0.2

Solution

Upgrade to version 7.0.2 or above.

Impact 10 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-23: Relative Path Traversal
  • CWE-26: Path Traversal: '/dir/../filename'

Source file

pypi/django-s3file/CVE-2026-42196.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:26 +0000.