CVE-2026-42196
CriticalSummary
django-s3file prior to version 7.0.2 is vulnerable to relative path traversal attacks, allowing an attacker to escape pre-signed upload locations and load files from random locations into request.FILES. This may lead to confidentiality and integrity issues.
Risk Assessment
Organizations may be exposed to data leaks and integrity breaches, which can result in serious legal and reputational consequences.
Recommendation
It is recommended to upgrade django-s3file to version 7.0.2 or later to mitigate this vulnerability.
Original NVD description (English source)
django-s3file is a lightweight file upload input for Django and Amazon S3. Prior to 7.0.2, 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. This vulnerability is fixed in 7.0.2.

