ADVISORIES

PyPA Advisory Database

PYSEC-2022-245

Details

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 packages

EcosystemPackageAffected versions
PyPIdjango
From 3.2 before 3.2.15 (fixed in 3.2.15)
From 4.0 before 4.0.7 (fixed in 4.0.7)

References