Cross-site scripting in django-rest-framework - CVE-2024-21520

 

Cross-site scripting in django-rest-framework - CVE-2024-21520

Published: October 2, 2024


Vulnerability identifier: #VU97956
CSH Severity: Low
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2024-21520
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The disclosed vulnerability allows a remote attacker to perform cross-site scripting (XSS) attacks.

The vulnerability exists due to insufficient sanitization of user-supplied data passed to the the break_long_headers template filter. A remote attacker can trick the victim to follow a specially crafted link and execute arbitrary HTML and script code in user's browser in context of vulnerable website.

Successful exploitation of this vulnerability may allow a remote attacker to steal potentially sensitive information, change appearance of the web page, perform phishing and drive-by-download attacks.


Affected software

django-rest-framework
Maximo Application Suite - Edge Data Collector
Ansible Automation Platform
automation-controller (Red Hat package)

How to mitigate CVE-2024-21520

Install updates from vendor's website.

django-rest-framework - update to 3.15.2
Ansible Automation Platform - update to 2.4
automation-controller (Red Hat package) - addressed in versions 4.5.12-1.el8ap, 4.5.12-1.el9ap
Maximo Application Suite - Edge Data Collector - addressed in versions 8.11.10, 9.0.2

External References

Related Security Bulletins