CVE catalog

CVE-2024-21520

djangorestframework: CVE-2024-21520

[CVE catalog]

Severity
Medium · CVSS 6.1CVSS: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.

DistributionPackageReleaseVersionStatus
Debiandjangorestframeworksid3.18.3+ds1-1fixed
Debiandjangorestframeworkforky3.18.3+ds1-1fixed
Debiandjangorestframeworktrixie3.16.0-1fixed
Debiandjangorestframeworkbookworm3.14.0-2+deb12u1vulnerable
PyPIdjangorestframeworkNot reported3.15.2fixed
Opensusepython-djangorestframeworktumbleweed3.16.1-2.1fixed
Ubuntudjangorestframework16.042.4.3-2vulnerable
Ubuntudjangorestframework16.043.3.1-1vulnerable
Ubuntudjangorestframework16.043.3.2-1vulnerable
Ubuntudjangorestframework16.043.3.2-2vulnerable
Ubuntudjangorestframework18.043.4.0-2vulnerable
Ubuntudjangorestframework18.043.7.7-1vulnerable
Ubuntudjangorestframework20.043.9.0-2vulnerable
Ubuntudjangorestframework20.043.10.2-1vulnerable
Ubuntudjangorestframework22.043.12.1-1vulnerable
Ubuntudjangorestframework22.043.12.4-1vulnerable
Ubuntudjangorestframework22.043.12.4-2vulnerable
Ubuntudjangorestframework22.043.12.4-2ubuntu1vulnerable
Ubuntudjangorestframework22.043.12.4-2.1ubuntu1vulnerable
Ubuntudjangorestframework24.043.14.0-2vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiandjangorestframeworksourcesid3.15.2-1not yet assignedNot reportedNot reported
Debiandjangorestframeworksourceforky3.15.2-1not yet assignedNot reportedNot reported
Debiandjangorestframeworksourcetrixie3.15.2-1not yet assignedNot reportedNot reported
Debiandjangorestframeworksourcebookworm(unfixed)not yet assignedNot reportedNot reported
PyPIdjangorestframeworkPyPINot reported3.15.2Not reportedNot reportedNot reported
Opensusepython-djangorestframeworkrpmtumbleweed3.16.1-2.1Not reportedOPENSUSE-SU-2026:10115-1Not reported

Notes

[bookworm] djangorestframework: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [djangorestframework]

    Details (2)
    • 3.14.0-2+deb12u1 · all · bookworm

      Affected

      dsa · djangorestframework · debian · bookworm; dsa · djangorestframework · debian · 12

    • 3.14.0-2+deb12u1 · all · bookworm

      Affected

      dsa · djangorestframework · debian · bookworm; dsa · djangorestframework · debian · 12

  • Source package: [djangorestframework]

    Details (2)
    • 3.14.0-2+deb12u1 · all · bookworm

      Affected

      dsa · djangorestframework · debian · bookworm; dsa · djangorestframework · debian · 12

    • 3.14.0-2+deb12u1 · all · bookworm

      Affected

      dsa · djangorestframework · debian · bookworm; dsa · djangorestframework · debian · 12

[openSUSE Tumbleweed]

[Debian 13 (Trixie)]

  • Source package: [djangorestframework]

    Details (2)
    • 3.16.0-1 · all · trixie

      Fixed · Fixed: 3.15.2-1

      dsa · djangorestframework · debian · 13

    • 3.16.0-1 · all · trixie

      Fixed · Fixed: 3.15.2-1

      dsa · djangorestframework · debian · 13

  • Source package: [djangorestframework]

    Details (2)
    • 3.16.0-1 · all · trixie

      Fixed · Fixed: 3.15.2-1

      dsa · djangorestframework · debian · 13

    • 3.16.0-1 · all · trixie

      Fixed · Fixed: 3.15.2-1

      dsa · djangorestframework · debian · 13

Observed:

References