CVE-2024-21520: Versions of the package djangorestframework before 3.15.2 are vulnerable to Cross-site Scripting (XSS) via the break_long_headers template filter...

5.3 CVSS

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.

Classification

CVE ID: CVE-2024-21520

CVSS Base Severity: MEDIUM

CVSS Base Score: 5.3

Affected Products

Vendor: n/a

Product: djangorestframework

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.05% (probability of being exploited)

EPSS Percentile: 17.83% (scored less or equal to compared to others)

EPSS Date: 2025-02-04 (when was this score calculated)

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/commit/3b41f0124194430da957b119712978fa2266b642

Timeline