CVE-2025-32873

Name
CVE-2025-32873
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().
NVD Severity
unknown
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
cve@mitre.org https://docs.djangoproject.com/en/dev/releases/security/
cve@mitre.org https://groups.google.com/g/django-announce
cve@mitre.org https://www.djangoproject.com/weblog/2025/may/07/security-releases/
af854a3a-2127-422b-91ae-364da2661108 http://www.openwall.com/lists/oss-security/2025/05/07/1

Match rules

CPE URI Source package Min version Max version
django >= 4.2 < 4.2.21
django >= 5.1 < 5.1.9
django >= 5.2 < 5.2.1
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* django >= 4.2.0 < 4.2.21
cpe:2.3:a:djangoproject:django:5.2:*:*:*:*:*:*:* django == None == 5.2

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
py3-django edge-community 4.2.21-r0 Natanael Copa <ncopa@alpinelinux.org> fixed
py3-django 3.22-community 4.2.21-r0 None fixed
py3-django 3.21-community 4.2.21-r0 Natanael Copa <ncopa@alpinelinux.org> fixed