GitHub Advisoryadvisory · PyPI

GHSA-67qg-7284-2277 django-s3file is vulnerable to relative path traversal

CRITICAL Published 2026-05-05 Modified 2026-10-27 Official page ↗
Aliases
CVE-2026-42196
Ecosystem
PyPI
Packages
django-s3file
Severity
Critical
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N
Weaknesses
CWE-22, CWE-23, CWE-26
Reviewed
2026-05-05

Affected packages

• PyPI django-s3file: < 7.0.2 → fixed in 7.0.2

Description

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.

Related

Alias · CVE (1)

  • CVE-2026-42196 django-s3file is a lightweight file upload input for Django and Amazon S3. vulnerability

Weakness · CWE (3)

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

References