CVE-2024-21520: Cross-site Scripting in djangorestframework
(updated )
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/compare/3.15.1...3.15.2
- github.com/encode/django-rest-framework/pull/9435
- nvd.nist.gov/vuln/detail/CVE-2024-21520
- security.snyk.io/vuln/SNYK-PYTHON-DJANGORESTFRAMEWORK-7252137
Code Behaviors & Features
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. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →