6.1
Medium
CVE-2024-21520 Versions of the package djangorestframework before 3.15.2 are vulnerable to Cross-site Scripting (XSS) via the…
Description
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 products and versions
| Product | Affected versions | Fixed in |
|---|---|---|
| djangorestframework 3.15 | earliest → < 3.15.2 | 3.15.2 |
| django_rest_framework 3.15 | earliest → < 3.15.2 | 3.15.2 |