Cross-site scripting in djangorestframework
Priority MEDIUM 57CWE-79Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Partial Red Hat: 2 fixed, 3 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-79.
Summary
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.
Why it matters now
Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.01133 66th percentileScored 2026-11-07
Fix Partial djangorestframework: 3.15.2djangorestframework (PyPI): 3.15.2Red Hat: 1 advisoryRed Hat: 2 fixed, 3 without a fix
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | djangorestframework | before 3.15.2 | 3.15.2 | Patch available | CNA |
| — | djangorestframework (PyPI) | before 3.15.2 | 3.15.2 | Patch available | GHSA-gw84-84pc-xp82 |
- djangorestframework Vendor— Affected before 3.15.2 Fixed in 3.15.2 Patch available CNA
- djangorestframework (PyPI) Vendor— Affected before 3.15.2 Fixed in 3.15.2 Patch available GHSA-gw84-84pc-xp82
CPE names CISA-ADP · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:django-rest-framework:django_rest_framework:3.15.2:*:*:*:*:*:*:* | 3.15.2 | — | Django-rest-framework |
- cpe:2.3:a:django-rest-framework:django_rest_framework:3.15.2:*:*:*:*:*:*:* Versions 3.15.2 — ·Django-rest-framework
Remediation
- Fix · CNA djangorestframework Fixed in 3.15.2
- Fix · GHSA-gw84-84pc-xp82 djangorestframework (PyPI) Fixed in 3.15.2 Advisory →
Red Hat 1 advisory
- RHSA-2024:7312 Released 2024-09-27 · Red Hat rating ModerateRed Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update
- Red Hat Ansible Automation Platform 2.4 for RHEL 8 automation-controller-venv-tower-4.5.12-1.el8ap
- Red Hat Ansible Automation Platform 2.4 for RHEL 9 automation-controller-venv-tower-4.5.12-1.el9ap
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Ansible Automation Platform 1.2 | Affected | No fix planned: Will not fix |
| Red Hat Ansible Automation Platform 2 | Affected | No fix yet |
| Red Hat Discovery 1 | Affected | No fix yet |
| Red Hat Ansible Automation Platform 2.4 for RHEL 8 | Fixed | RHSA-2024:7312 |
| Red Hat Ansible Automation Platform 2.4 for RHEL 9 | Fixed | RHSA-2024:7312 |
Not affected: 3 products
- Red Hat Ansible Automation Platform 2
- Red Hat Ansible Automation Platform 2.4 for RHEL 8
- Red Hat Ansible Automation Platform 2.4 for RHEL 9
Timeline
- 2026-10-02 Threatist record created from CVE-2024-21520
- 2026-10-03 Alias added: GHSA-gw84-84pc-xp82
References
Sources
- CVE-2024-21520 · CVE Program
- CVE-2024-21520 · NVD
- FIRST EPSS
- GHSA-gw84-84pc-xp82 · GitHub Advisory Database · CC BY 4.0
- CVE-2024-21520 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences