UBUNTU-CVE-2024-21520

Source
https://ubuntu.com/security/CVE-2024-21520
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-21520.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2024-21520
Upstream
Published
2024-06-26T05:15:00Z
Modified
2025-07-18T16:56:23Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
  • 2.1 (Low) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N/E:P CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

Versions of the package djangorestframework before 3.15.2 are vulnerable to Cross-site Scripting (XSS) via the breaklongheaders template filter due to improper input sanitization before splitting and joining with <br> tags.

References

Affected packages

Ubuntu:Pro:16.04:LTS / djangorestframework

Package

Name
djangorestframework
Purl
pkg:deb/ubuntu/djangorestframework@3.3.2-2?arch=source&distro=esm-apps/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*

2.4.3-2

3.*

3.3.1-1
3.3.2-1
3.3.2-2

Ubuntu:Pro:18.04:LTS / djangorestframework

Package

Name
djangorestframework
Purl
pkg:deb/ubuntu/djangorestframework@3.7.7-1?arch=source&distro=esm-apps/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.4.0-2
3.7.7-1

Ubuntu:Pro:20.04:LTS / djangorestframework

Package

Name
djangorestframework
Purl
pkg:deb/ubuntu/djangorestframework@3.10.2-1?arch=source&distro=esm-apps/focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.9.0-2
3.10.2-1

Ubuntu:22.04:LTS / djangorestframework

Package

Name
djangorestframework
Purl
pkg:deb/ubuntu/djangorestframework@3.12.4-2.1ubuntu1?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.12.1-1
3.12.4-1
3.12.4-2
3.12.4-2ubuntu1
3.12.4-2.1ubuntu1

Ubuntu:24.04:LTS / djangorestframework

Package

Name
djangorestframework
Purl
pkg:deb/ubuntu/djangorestframework@3.14.0-2?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.14.0-2