Read the docs
TI-2024-14276 Aliases CVE-2024-21520GHSA-gw84-84pc-xp82

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

VendorProductAffected versionsFixed inStatusSource
—djangorestframeworkbefore 3.15.23.15.2Patch availableCNA
—djangorestframework (PyPI)before 3.15.23.15.2Patch availableGHSA-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

CPEVersionsRoleVendor
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 Moderate
    Red 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 →

ProductStatusPlan or fix
Red Hat Ansible Automation Platform 1.2AffectedNo fix planned: Will not fix
Red Hat Ansible Automation Platform 2AffectedNo fix yet
Red Hat Discovery 1AffectedNo fix yet
Red Hat Ansible Automation Platform 2.4 for RHEL 8Fixed RHSA-2024:7312
Red Hat Ansible Automation Platform 2.4 for RHEL 9Fixed 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

  1. 2026-10-02 Threatist record created from CVE-2024-21520
  2. 2026-10-03 Alias added: GHSA-gw84-84pc-xp82

References

Sources