CVE-2025-32873

MEDIUMCVSS 5.3/10EPSS 13.97%

Last modified

CVE-2025-32873 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. An issue was discovered in Django 4.2 before 4.2.21, 5.1 before 5.1.9, and 5.2 before 5.2.1. The django.utils.html.strip_tags() function is vulnerable to a potential denial-of-service (slow performance) when processing inputs containing large sequences of incomplete HTML tags. EPSS estimates a 13.97% chance of exploitation in the next 30 days.

Description

An issue was discovered in Django 4.2 before 4.2.21, 5.1 before 5.1.9, and 5.2 before 5.2.1. The django.utils.html.strip_tags() function is vulnerable to a potential denial-of-service (slow performance) when processing inputs containing large sequences of incomplete HTML tags. The template filter striptags is also vulnerable, because it is built on top of strip_tags().

Metrics

CVSS 3.1
5.3/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

EPSS Probability
13.97%

96.1th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
DjangoprojectDjango>= 4.2.0, < 4.2.21
DjangoprojectDjango>= 5.1, < 5.1.9
DjangoprojectDjango5.2

References

Timeline

Published
Last Modified
Status
Analyzed

Frequently Asked Questions

What is CVE-2025-32873?
An issue was discovered in Django 4.2 before 4.2.21, 5.1 before 5.1.9, and 5.2 before 5.2.1. The django.utils.html.strip_tags() function is vulnerable to a potential denial-of-service (slow performance) when processing inputs containing large sequences of incomplete HTML tags. The template filter striptags is also vulnerable, because it is built on top of strip_tags().
How severe is CVE-2025-32873?
CVE-2025-32873 has a CVSS score of 5.3/10 (MEDIUM severity). The EPSS model estimates a 13.97% probability of exploitation in the next 30 days.
How do I fix CVE-2025-32873?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2025-32873?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST