CVE-2025-32873 Details
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().
A denial-of-service vulnerability has been identified in Django versions 4.2 prior to 4.2.21, 5.1 prior to 5.1.9, and 5.2 prior to 5.2.1. The issue arises in the django.utils.html.strip_tags() function, which can experience slow performance when processing inputs with large sequences of incomplete HTML tags. This vulnerability can lead to service degradation or unresponsiveness. Additionally, the 'striptags' template filter, which relies on the strip_tags() function, is also affected.
Users can upgrade to Django versions 5.2.1, 5.1.9, or 4.2.21 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 8, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| http://www.openwall.com/lists/oss-security/2025/05/07/1 | CVE | Mailing ListThird Party Advisory |
| https://docs.djangoproject.com/en/dev/releases/security/ | [email protected] | Release Notes |
| https://groups.google.com/g/django-announce | [email protected] | Mailing List |
| https://www.djangoproject.com/weblog/2025/may/07/security-releases/ | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-770 | Allocation of Resources Without Limits or Throttling | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| djangoproject django | >= 4.2.0, < 4.2.21 >= 5.1, < 5.1.9 5.2 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 2, 2025 | Reanalysis | [email protected] |
| Jun 17, 2025 | Initial Analysis | [email protected] |
| May 8, 2025 | New CVE Received | [email protected] |
| May 8, 2025 | CVE Modified | CVE |