ADVISORIES

Vulnerability

CVE-2024-21520

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.

6 advisories report this vulnerability, across 5 ecosystems.

Advisories

  • DEBIAN-CVE-2024-21520

    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>…

    CVE-2024-21520 Debian Updated 2 November 2026
  • GHSA-gw84-84pc-xp82

    Cross-site Scripting in djangorestframework

    Low CVE-2024-21520 PyPI Updated 7 July 2026
  • PYSEC-2026-1304

    Cross-site Scripting in djangorestframework

    CVE-2024-21520 PyPI Updated 7 July 2026
  • RHSA-2024:7312

    Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update

    CVE-2024-21520CVE-2024-37891CVE-2024-41810 Red Hat Updated 24 November 2026
  • UBUNTU-CVE-2024-21520

    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>…

    CVE-2024-21520 Ubuntu Updated 24 October 2025
  • openSUSE-SU-2026:10115-1

    python311-djangorestframework-3.16.1-2.1 on GA media

    CVE-2024-21520 openSUSE Updated 23 March 2026

References