Ubuntu CVE Tracker
UBUNTU-CVE-2024-21520
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:16.04:LTS | djangorestframework | All versions, no fix listed |
| Ubuntu:18.04:LTS | djangorestframework | All versions, no fix listed |
| Ubuntu:20.04:LTS | djangorestframework | All versions, no fix listed |
| Ubuntu:22.04:LTS | djangorestframework | All versions, no fix listed |
| Ubuntu:24.04:LTS | djangorestframework | All versions, no fix listed |
References
- https://ubuntu.com/security/CVE-2024-21520
- https://www.cve.org/CVERecord?id=CVE-2024-21520
- https://github.com/encode/django-rest-framework/pull/9435
- https://github.com/encode/django-rest-framework/commit/3b41f0124194430da957b119712978fa2266b642
- https://security.snyk.io/vuln/SNYK-PYTHON-DJANGORESTFRAMEWORK-7252137
- https://github.com/encode/django-rest-framework/commit/3b41f0124194430da957b119712978fa2266b642