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
Affected Vendors & Products
References
History
Tue, 17 Jun 2025 20:00:00 +0000
Type | Values Removed | Values Added |
---|---|---|
First Time appeared |
Djangoproject
Djangoproject django |
|
CPEs | cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* cpe:2.3:a:djangoproject:django:5.2:*:*:*:*:*:*:* |
|
Vendors & Products |
Djangoproject
Djangoproject django |
Thu, 08 May 2025 15:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Metrics |
ssvc
|
Thu, 08 May 2025 14:30:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Title | django: Django StripTags Denial of Service | |
References |
| |
Metrics |
threat_severity
|
threat_severity
|
Thu, 08 May 2025 04:45:00 +0000
Type | Values Removed | Values Added |
---|---|---|
References |
|
Thu, 08 May 2025 03:45:00 +0000
Type | Values Removed | Values Added |
---|---|---|
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(). | |
Weaknesses | CWE-770 | |
References |
| |
Metrics |
cvssV3_1
|

Status: PUBLISHED
Assigner: mitre
Published: 2025-05-08T00:00:00.000Z
Updated: 2025-05-08T14:42:25.501Z
Reserved: 2025-04-11T00:00:00.000Z
Link: CVE-2025-32873

Updated: 2025-05-08T04:05:04.028Z

Status : Analyzed
Published: 2025-05-08T04:17:18.157
Modified: 2025-06-17T19:44:20.957
Link: CVE-2025-32873
