Bug 2294457 (CVE-2024-21520) - CVE-2024-21520 djangorestframework: Cross-site Scripting (XSS) via break_long_headers
Summary: CVE-2024-21520 djangorestframework: Cross-site Scripting (XSS) via break_long...
Keywords:
Status: NEW
Alias: CVE-2024-21520
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 2294456
TreeView+ depends on / blocked
 
Reported: 2024-06-27 01:17 UTC by Patrick Del Bello
Modified: 2025-06-17 08:27 UTC (History)
23 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2024:7312 0 None None None 2024-09-27 04:31:16 UTC

Description Patrick Del Bello 2024-06-27 01:17:33 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.

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

Comment 6 errata-xmlrpc 2024-09-27 04:31:14 UTC
This issue has been addressed in the following products:

  Red Hat Ansible Automation Platform 2.4 for RHEL 9
  Red Hat Ansible Automation Platform 2.4 for RHEL 8

Via RHSA-2024:7312 https://access.redhat.com/errata/RHSA-2024:7312


Note You need to log in before you can comment on or make changes to this bug.