CVE-2024-21520
Cross-site Scripting in djangorestframework
6.1
MEDIUM
CVSS 3.1
EPSS 8.4%
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.
How to fix CVE-2024-21520
To remediate CVE-2024-21520, upgrade the affected package to a fixed version below.
- Debian/djangorestframework—no fix listed
- —upgrade to 3.15.2 or later
Is CVE-2024-21520 being exploited?
Moderate — EPSS is 8.4%. Track this CVE but it's not at the top of the prioritisation list.
Affected packages (2)
- from 0
- from 0, < 3.15.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N/E:P |
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |