medium6.1
CVE-2024-21520
Cross-site Scripting in djangorestframework
Impact
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 | Fixed in |
|---|---|---|---|
| pip | djangorestframework | < 3.15.2 | 3.15.2 |
Affected products
| Product | Affected versions |
|---|---|
| Package Djangorestframework | before 3.15.2 |
Versions were read from the advisory text. No structured product data has been published for this record yet.
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/encode/django-rest-framework/commit/3b41f0124194430da957b119712978fa2266b642
- 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/compare/3.15.1...3.15.2
- https://github.com/advisories/GHSA-gw84-84pc-xp82
- https://nvd.nist.gov/vuln/detail/CVE-2024-21520