CVE-2024-21520: Django-Rest-Framework Django Rest Framework

Medium severity, CVSS 6.1. EPSS: 1.1% chance of exploitation in the next 30 days.

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

Published 2024-06-26. Last modified 2026-06-17.