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) | 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.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|
djangorestframework | source | (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)