PT-2025-20317

CVE-2025-32873

·

Published

2025-05-07

·

Updated

2026-07-14

Description by

CVSS 3.1
7.5
High
MetricsAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Django versions 4.2 through 4.2.20 Django versions 5.1 through 5.1.8 Django versions 5.2 through 5.2.0
Description An issue was discovered in Django, where 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(). This issue can be exploited by attackers to crash servers via malformed HTML.
Recommendations For Django versions 4.2 through 4.2.20, update to version 4.2.21 or later. For Django versions 5.1 through 5.1.8, update to version 5.1.9 or later. For Django versions 5.2 through 5.2.0, update to version 5.2.1 or later. As a temporary workaround, consider disabling the strip tags() function or restricting the use of the striptags template filter until a patch is available.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-8J24-CJRQ-GR2M
ALT-PU-2025-10176
BIT-DJANGO-2025-32873
DLA-4210-1
MGASA-2025-0153
OESA-2025-1524
OPENSUSE-SU-2025:15082-1
OPENSUSE-SU-2025:15087-1
OPENSUSE-SU-2025_1523-1
OPENSUSE-SU-2026:10005-1
OPENSUSE-SU-2026:11270-1
PYSEC-2025-37
SUSE-SU-2025:01523-1
SUSE-SU-2025:1523-1
USN-7501-1
USN-7501-2
Found an issue in the description? Have something to add? Feel free to write us 👾