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().
History

Thu, 08 May 2025 15:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 08 May 2025 14:30:00 +0000

Type Values Removed Values Added
Title django: Django StripTags Denial of Service
References
Metrics threat_severity

None

threat_severity

Moderate


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

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}


cve-icon MITRE

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

cve-icon Vulnrichment

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

cve-icon NVD

Status : Awaiting Analysis

Published: 2025-05-08T04:17:18.157

Modified: 2025-05-08T14:39:09.683

Link: CVE-2025-32873

cve-icon Redhat

Severity : Moderate

Publid Date: 2025-05-08T00:00:00Z

Links: CVE-2025-32873 - Bugzilla