
CVE catalog
CVE-2024-21520
djangorestframework: CVE-2024-21520
- Severity
- Medium · CVSS 6.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.13% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | djangorestframework | sid | 3.18.3+ds1-1 | fixed |
| Debian | djangorestframework | forky | 3.18.3+ds1-1 | fixed |
| Debian | djangorestframework | trixie | 3.16.0-1 | fixed |
| Debian | djangorestframework | bookworm | 3.14.0-2+deb12u1 | vulnerable |
| PyPI | djangorestframework | Not reported | 3.15.2 | fixed |
| Opensuse | python-djangorestframework | tumbleweed | 3.16.1-2.1 | fixed |
| Ubuntu | djangorestframework | 16.04 | 2.4.3-2 | vulnerable |
| Ubuntu | djangorestframework | 16.04 | 3.3.1-1 | vulnerable |
| Ubuntu | djangorestframework | 16.04 | 3.3.2-1 | vulnerable |
| Ubuntu | djangorestframework | 16.04 | 3.3.2-2 | vulnerable |
| Ubuntu | djangorestframework | 18.04 | 3.4.0-2 | vulnerable |
| Ubuntu | djangorestframework | 18.04 | 3.7.7-1 | vulnerable |
| Ubuntu | djangorestframework | 20.04 | 3.9.0-2 | vulnerable |
| Ubuntu | djangorestframework | 20.04 | 3.10.2-1 | vulnerable |
| Ubuntu | djangorestframework | 22.04 | 3.12.1-1 | vulnerable |
| Ubuntu | djangorestframework | 22.04 | 3.12.4-1 | vulnerable |
| Ubuntu | djangorestframework | 22.04 | 3.12.4-2 | vulnerable |
| Ubuntu | djangorestframework | 22.04 | 3.12.4-2ubuntu1 | vulnerable |
| Ubuntu | djangorestframework | 22.04 | 3.12.4-2.1ubuntu1 | vulnerable |
| Ubuntu | djangorestframework | 24.04 | 3.14.0-2 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | djangorestframework | source | sid | 3.15.2-1 | not yet assigned | Not reported | Not reported |
| Debian | djangorestframework | source | forky | 3.15.2-1 | not yet assigned | Not reported | Not reported |
| Debian | djangorestframework | source | trixie | 3.15.2-1 | not yet assigned | Not reported | Not reported |
| Debian | djangorestframework | source | bookworm | (unfixed) | not yet assigned | Not reported | Not reported |
| PyPI | djangorestframework | PyPI | Not reported | 3.15.2 | Not reported | Not reported | Not reported |
| Opensuse | python-djangorestframework | rpm | tumbleweed | 3.16.1-2.1 | Not reported | OPENSUSE-SU-2026:10115-1 | Not reported |
Notes
[bookworm] djangorestframework: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-djangorestframework]Affected
Source package: [djangorestframework]
Details (2)
3.14.0-2+deb12u1· all · bookwormAffected
dsa · djangorestframework · debian · bookworm; dsa · djangorestframework · debian · 12
3.14.0-2+deb12u1· all · bookwormAffected
dsa · djangorestframework · debian · bookworm; dsa · djangorestframework · debian · 12
- [python-djangorestframework-doc]Affected
Source package: [djangorestframework]
Details (2)
3.14.0-2+deb12u1· all · bookwormAffected
dsa · djangorestframework · debian · bookworm; dsa · djangorestframework · debian · 12
3.14.0-2+deb12u1· all · bookwormAffected
dsa · djangorestframework · debian · bookworm; dsa · djangorestframework · debian · 12
[openSUSE Tumbleweed]
- [python313-djangorestframework]Unknown
Source package: [python-djangorestframework]
Details (1)
3.18.0-2.1· noarch · tumbleweedUnknown · Fixed:
3.16.1-2.1Version impact unknown
dsa · python-djangorestframework · opensuse · tumbleweed
- [python314-djangorestframework]Unknown
Source package: [python-djangorestframework]
Details (1)
3.18.0-2.1· noarch · tumbleweedUnknown · Fixed:
3.16.1-2.1Version impact unknown
dsa · python-djangorestframework · opensuse · tumbleweed
[Debian 13 (Trixie)]
- [python3-djangorestframework]Fixed
Source package: [djangorestframework]
Details (2)
3.16.0-1· all · trixieFixed · Fixed:
3.15.2-1dsa · djangorestframework · debian · 13
3.16.0-1· all · trixieFixed · Fixed:
3.15.2-1dsa · djangorestframework · debian · 13
Source package: [djangorestframework]
Details (2)
3.16.0-1· all · trixieFixed · Fixed:
3.15.2-1dsa · djangorestframework · debian · 13
3.16.0-1· all · trixieFixed · Fixed:
3.15.2-1dsa · djangorestframework · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_10115-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2024-21520]
- [https://osv.dev/vulnerability/GHSA-gw84-84pc-xp82]
- [https://osv.dev/vulnerability/PYSEC-2026-1304]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2024-21520]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:10115-1]
- [https://security-tracker.debian.org/tracker/CVE-2024-21520]
- [https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-21520.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-2229.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]