CVE-2024-21520
published medium CVSS 4.0 · 5.3djangorestframework: Cross-site Scripting (XSS) via break_long_headers
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | djangorestframework0 to < 3.15.2 | Affected | Not stated | snyk |
| django-rest-framework | — | django_rest_framework0 to < 3.15.2 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-djangorestframeworkaarch64 | Advisory build | 3.16.1-2.1 | OPENSUSE-SU-2026:10115-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-djangorestframeworkppc64le | Advisory build | 3.16.1-2.1 | OPENSUSE-SU-2026:10115-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-djangorestframeworks390x | Advisory build | 3.16.1-2.1 | OPENSUSE-SU-2026:10115-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-djangorestframeworkx86_64 | Advisory build | 3.16.1-2.1 | OPENSUSE-SU-2026:10115-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-djangorestframeworkaarch64 | Advisory build | 3.16.1-2.1 | OPENSUSE-SU-2026:10115-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-djangorestframeworkppc64le | Advisory build | 3.16.1-2.1 | OPENSUSE-SU-2026:10115-1 |
Show 6 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-djangorestframeworks390x | Advisory build | 3.16.1-2.1 | OPENSUSE-SU-2026:10115-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-djangorestframeworkx86_64 | Advisory build | 3.16.1-2.1 | OPENSUSE-SU-2026:10115-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-djangorestframeworkaarch64 | Advisory build | 3.16.1-2.1 | OPENSUSE-SU-2026:10115-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-djangorestframeworkppc64le | Advisory build | 3.16.1-2.1 | OPENSUSE-SU-2026:10115-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-djangorestframeworks390x | Advisory build | 3.16.1-2.1 | OPENSUSE-SU-2026:10115-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-djangorestframeworkx86_64 | Advisory build | 3.16.1-2.1 | OPENSUSE-SU-2026:10115-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- snyk · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.1 | medium | snyk · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | djangorestframework | 0 to < 3.15.2 (affected · semver) | snyk · cna |
| django-rest-framework | django_rest_framework | 0 to < 3.15.2 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-79 Cross-site Scripting (XSS)
References
4Provider assertions
3snyk · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 2855dbfc8b798384000692e789a4b57a8f61897bed9c5dc9fd3e84b65be6373e
- Ingested
- 23 Sep 2026, 08:19:02 UTC
- Source record
- Official CVE record