What’s Vulnerable › Vulnerabilities

CVE-2024-21520

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

How to fix

Upgrade to a fixed version: Django-Rest-Framework Django Rest Framework 3.15.2. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-21520 or the next vulnerability affects your stack