CVE-2025-32873

NameCVE-2025-32873
DescriptionAn 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().
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1104872

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python-django (PTS)bullseye2:2.2.28-1~deb11u2vulnerable
bullseye (security)2:2.2.28-1~deb11u6vulnerable
bookworm, bookworm (security)3:3.2.19-1+deb12u1vulnerable
trixie, sid3:4.2.21-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
python-djangosource(unstable)3:4.2.21-11104872

Notes

https://www.djangoproject.com/weblog/2025/may/07/security-releases/
Fixed by: https://github.com/django/django/commit/9cd8028f3e38dca8e51c1388f474eecbe7d6ca3c (4.2.21)

Search for package or bug name: Reporting problems