CVE-2024-21520

NameCVE-2024-21520
DescriptionVersions 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
djangorestframework (PTS)jessie2.4.3-2vulnerable
stretch (lts), stretch3.4.0-2+deb9u1vulnerable
buster (security), buster, buster (lts)3.9.0-1+deb10u1vulnerable
bullseye3.12.1-1vulnerable
bookworm3.14.0-2+deb12u1vulnerable
sid, trixie3.15.2-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
djangorestframeworksourcejessie(unfixed)end-of-life
djangorestframeworksource(unstable)3.15.2-1

Notes

[bookworm] - djangorestframework <no-dsa> (Minor issue)
[bullseye] - djangorestframework <no-dsa> (Minor issue)
https://github.com/encode/django-rest-framework/pull/9435
https://github.com/encode/django-rest-framework/commit/3b41f0124194430da957b119712978fa2266b642 (3.15.2)
[buster] - djangorestframework <postponed> (Minor issue; can be fixed in next update)
[stretch] - djangorestframework <postponed> (Minor issue; can be fixed in next update)

Search for package or bug name: Reporting problems