CVE-2024-21520: Cross-site Scripting in djangorestframework
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 tags.
References
- github.com/advisories/GHSA-gw84-84pc-xp82
- github.com/encode/django-rest-framework
- github.com/encode/django-rest-framework/commit/3b41f0124194430da957b119712978fa2266b642
- github.com/encode/django-rest-framework/pull/9435
- nvd.nist.gov/vuln/detail/CVE-2024-21520
- security.snyk.io/vuln/SNYK-PYTHON-DJANGORESTFRAMEWORK-7252137
Detect and mitigate CVE-2024-21520 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →