| 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(). |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DLA-4210-1, DSA-6136-1 |
| Debian Bugs | 1104872 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| python-django (PTS) | bullseye | 2:2.2.28-1~deb11u2 | vulnerable |
| bullseye (security) | 2:2.2.28-1~deb11u12 | fixed | |
| bookworm | 3:3.2.25-0+deb12u3 | fixed | |
| bookworm (security) | 3:3.2.25-0+deb12u2 | fixed | |
| trixie | 3:4.2.28-0+deb13u2 | fixed | |
| trixie (security) | 3:4.2.28-0+deb13u1 | fixed | |
| forky, sid | 3:5.2.16-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| python-django | source | bullseye | 2:2.2.28-1~deb11u7 | DLA-4210-1 | ||
| python-django | source | bookworm | 3:3.2.25-0+deb12u1 | DSA-6136-1 | ||
| python-django | source | (unstable) | 3:4.2.21-1 | 1104872 |
https://www.djangoproject.com/weblog/2025/may/07/security-releases/
Fixed by: https://github.com/django/django/commit/9cd8028f3e38dca8e51c1388f474eecbe7d6ca3c (4.2.21)