CVE-2024-21520

medium

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.

References

https://security.snyk.io/vuln/SNYK-PYTHON-DJANGORESTFRAMEWORK-7252137

https://github.com/encode/django-rest-framework/pull/9435

https://github.com/encode/django-rest-framework/compare/3.15.1...3.15.2

https://github.com/encode/django-rest-framework/commit/3b41f0124194430da957b119712978fa2266b642

Details

Source: Mitre, NVD

Published: 2024-06-26

Updated: 2024-07-04

Risk Information

CVSS v2

Base Score: 6.4

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:N

Severity: Medium

CVSS v3

Base Score: 6.1

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Severity: Medium