All reports
Critical

django-s3file is vulnerable to relative path traversal

Affected versions

Version ranges need review.

Affected versions
<= 7.0.1
Fixed version
7.0.2
Affected versions
<7.0.2
Fixed version
7.0.2

Exploitation

CVE-2026-42196

Probability of exploitation in the next 30 days: 0.57%

FIRST EPSS · 2026-11-21

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.

Links

Credits

  • stsewd
  • amureki