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)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
djangorestframeworksource(unstable)3.15.2-1

Notes

https://github.com/encode/django-rest-framework/pull/9435
https://github.com/encode/django-rest-framework/commit/3b41f0124194430da957b119712978fa2266b642 (3.15.2)

Search for package or bug name: Reporting problems