Bug 1227077 (CVE-2024-21520)

Summary: VUL-0: CVE-2024-21520: python-djangorestframework: improper input sanitization before splitting and joining with <br> tags in break_long_headers template filter
Product: [Novell Products] SUSE Security Incidents Reporter: SMASH SMASH <smash_bz>
Component: IncidentsAssignee: John Vandenberg <jayvdb>
Status: NEW --- QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: camila.matos
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/412172/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-21520:6.1:(AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description SMASH SMASH 2024-06-26 12:52:49 UTC
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.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-21520
https://www.cve.org/CVERecord?id=CVE-2024-21520
https://github.com/encode/django-rest-framework/commit/3b41f0124194430da957b119712978fa2266b642
https://github.com/encode/django-rest-framework/pull/9435
https://security.snyk.io/vuln/SNYK-PYTHON-DJANGORESTFRAMEWORK-7252137