Name | CVE-2024-21520 |
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. |
Source | CVE (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 Package | Release | Version | Status |
---|
djangorestframework (PTS) | jessie | 2.4.3-2 | vulnerable |
| stretch (lts), stretch | 3.4.0-2+deb9u1 | vulnerable |
| buster (security), buster, buster (lts) | 3.9.0-1+deb10u1 | vulnerable |
| bullseye | 3.12.1-1 | vulnerable |
| bookworm | 3.14.0-2+deb12u1 | vulnerable |
| sid, trixie | 3.15.2-2 | fixed |
The information below is based on the following data on fixed versions.
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)