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

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
  • github.com/codingjoe/django-s3file/security/advisories/GHSA-67qg-7284-2277
  • nvd.nist.gov/vuln/detail/CVE-2026-42196

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. Learn more about Dependency Scanning →

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-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 Sat, 09 May 2026 00:19:36 +0000.