Advisory

GHSA-67qg-7284-2277

Also known as: CVE-2026-42196, PYSEC-2026-328

Summary

django-s3file is vulnerable to relative path traversal

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2026-05-05 20:05 UTC
Modified
2026-10-27 16:30 UTC

Affected packages and fixes

django-s3file

PyPI · All systems

Affected

  • introduced 0, fixed 7.0.2 (ecosystem)

Fixed versions

7.0.2

Fix

  • Fixed version 7.0.2
    pip install --upgrade django-s3file==7.0.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences