—
PYSEC-2022-245
Quick fix
PYSEC-2022-245 — django: upgrade to the fixed version with the command below.
pip install --upgrade 'django>=3.2.15'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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://docs.djangoproject.com/en/4.0/releases/security/[WEB]
- https://www.djangoproject.com/weblog/2022/aug/03/security-releases/[ARTICLE]
- https://groups.google.com/g/django-announce/c/8cz--gvaJr4[WEB]
- http://www.openwall.com/lists/oss-security/2022/08/03/1[WEB]
- https://github.com/advisories/GHSA-8x94-hmjh-97hq[ADVISORY]