CVE-2024-21520
Versions of the package djangorestframework before 3.15.2 are …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/encode/django-rest-framework/commit/3b41f0124194430da957b119712978fa2266b642
- github.com/encode/django-rest-framework/pull/9435
- security.snyk.io/vuln/SNYK-PYTHON-DJANGORESTFRAMEWORK-7252137
- github.com/encode/django-rest-framework/compare/3.15.1...3.15.2
- nvd.nist.gov/vuln/detail/CVE-2024-21520
- github.com/advisories/GHSA-gw84-84pc-xp82
- nvd.nist.gov/vuln/detail/CVE-2024-21520
- cve.org/CVERecord?id=CVE-2024-21520
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.