Denial-of-Service Flaw in Django by Django Software Foundation
CVE-2025-32873 
7.5HIGH
What is CVE-2025-32873?
A vulnerability exists in Django's html utility functions, specifically django.utils.html.strip_tags(), affecting versions prior to 4.2.21, 5.1.9, and 5.2.1. This flaw can lead to significant performance degradation when processing large sequences of incomplete HTML tags, potentially causing denial-of-service conditions. Additionally, the template filter striptags, which relies on strip_tags(), is also affected, exposing a wider range of applications using these functions to slow response times under certain inputs.
Affected Version(s)
Django 4.2 < 4.2.21
Django 5.1 < 5.1.9
Django 5.2 < 5.2.1
