Vulnerability Description
Versions of the package djangorestframework before 3.15.2 are vulnerable to Cross-site Scripting (XSS) via the break_long_headers template filter due to improper input sanitization before splitting and joining with <br> tags.
CVSS Score
MEDIUM
Related Weaknesses (CWE)
References
- https://github.com/encode/django-rest-framework/commit/3b41f0124194430da957b1197
- https://github.com/encode/django-rest-framework/pull/9435
- https://security.snyk.io/vuln/SNYK-PYTHON-DJANGORESTFRAMEWORK-7252137
- https://github.com/encode/django-rest-framework/commit/3b41f0124194430da957b1197
- https://github.com/encode/django-rest-framework/compare/3.15.1...3.15.2
- https://github.com/encode/django-rest-framework/pull/9435
- https://security.snyk.io/vuln/SNYK-PYTHON-DJANGORESTFRAMEWORK-7252137
FAQ
What is CVE-2024-21520?
CVE-2024-21520 is a vulnerability with a CVSS score of 6.1 (MEDIUM). Versions of the package djangorestframework before 3.15.2 are vulnerable to Cross-site Scripting (XSS) via the break_long_headers template filter due to improper input sanitization before splitting an...
How severe is CVE-2024-21520?
CVE-2024-21520 has been rated MEDIUM with a CVSS base score of 6.1/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2024-21520?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.