CVEvulnerability
CVE-2024-21520
2.1 LOW
Official page ↗
- Status
- Deferred
- Published
- 2024-06-26
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 4.0 ([email protected])
- 2.1 LOW — CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- CVSS 3.1 ([email protected])
- 6.1 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Weaknesses
- CWE-79
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.
Related
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://github.com/encode/django-rest-framework/commit/3b41f0124194430da957b119712978fa2266b642 github.com
- https://github.com/encode/django-rest-framework/pull/9435 github.com
- https://security.snyk.io/vuln/SNYK-PYTHON-DJANGORESTFRAMEWORK-7252137 security.snyk.io
- https://github.com/encode/django-rest-framework/commit/3b41f0124194430da957b119712978fa2266b642 github.com
- https://github.com/encode/django-rest-framework/compare/3.15.1...3.15.2 github.com
- https://github.com/encode/django-rest-framework/pull/9435 github.com
- https://security.snyk.io/vuln/SNYK-PYTHON-DJANGORESTFRAMEWORK-7252137 security.snyk.io