6.1

CVE-2024-21520: djangorestframework

Deferred
AliasesGHSA-gw84-84pc-xp82PYSEC-2026-1304UBUNTU-CVE-2024-21520
Published 26-06-2024Last modified 31-12-2024

Vulnerability summary

CVE-2024-21520 is a medium (CVSS 6.1) vulnerability in djangorestframework. EPSS estimates a 1.13% chance of exploitation in the next 30 days, higher than 66.5% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.1/10
010
Medium · v3.1 (NVD)
EPSS score
1.13%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 1

Timeline

  1. 26-06-2024
    PublishedVulnerability first disclosed.
  2. 31-12-2024
    Last modifiedVulnerability information updated.

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.

CVSS metrics

8 scores · 5 sources · 2 versions

EPSS trend

Probability

1.13%

Chance of exploitation in the next 30 days

Percentile

67%

Versus all other CVEs

30-day change

No change 0.00 pp

From 1.13% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Debian1 product
  • djangorestframeworkAll versions (No fix recorded) | < 3.15.2-1
Opensuse1 product
  • python-djangorestframework&distro=openSUSE Tumbleweed< 3.16.1-2.1
PyPI1 product
  • djangorestframework< 3.15.2
Ubuntu1 product
  • djangorestframeworkAll versions (No fix recorded)

4 vendors · 4 products

References

12 links
Show all 12 references