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.

SeverityMedium
CVSS6.1
Exploit probability—
ProductDjangorestframework
PublishedJun 26, 2024
First seenJun 26, 2024

How to fix

Update
  • djangorestframework3.15.2 or later

Affected products

ProductAffected versionsFixed in
djangorestframeworkPyPIv < 3.15.23.15.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.