Skip to content

Cross-site Scripting in djangorestframework

Moderate severity GitHub Reviewed Published Jun 26, 2024 to the GitHub Advisory Database • Updated Jun 26, 2024

Package

pip djangorestframework (pip)

Affected versions

< 3.15.2

Patched versions

3.15.2

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
tags.

References

Published by the National Vulnerability Database Jun 26, 2024
Published to the GitHub Advisory Database Jun 26, 2024
Last updated Jun 26, 2024
Reviewed Jun 26, 2024

Severity

Moderate
6.1
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Weaknesses

CVE ID

CVE-2024-21520

GHSA ID

GHSA-gw84-84pc-xp82
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.