What’s Vulnerable › Vulnerabilities

CVE-2022-36359: Django vulnerable to Reflected File Download attack

Description

An issue was discovered in the HTTP FileResponse class in Django 3.2 before 3.2.15 and 4.0 before 4.0.7. An application is vulnerable to a reflected file download (RFD) attack that sets the Content-Disposition header of a FileResponse when the filename is derived from user-supplied input.

Affected products

How to fix

Upgrade to a fixed version: Django 3.2.15, 4.0.7; Pypi Django 3.2.15, 4.0.7. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-36359 or the next vulnerability affects your stack