CVE-2025-32873
Django has a denial-of-service possibility in strip_tags()
5.3
MEDIUM
CVSS 3.1
EPSS 0.19%
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().
How to fix CVE-2025-32873
To remediate CVE-2025-32873, upgrade the affected package to a fixed version below.
- —upgrade to 4.2.21 or later
- —upgrade to 2:2.2.28-1~deb11u7 or later
- —upgrade to 4.2.21 or later
- —upgrade to 4.2.21 or later
Is CVE-2025-32873 being exploited?
Low — EPSS is 0.2%, meaning exploitation activity has not been observed at scale.
Affected packages (4)
- >= 4.2.0, < 4.2.21, >= 5.1.0, < 5.1.9, >= 5.2.0, < 5.2.5
- from 0, < 2:2.2.28-1~deb11u7
- >= 4.2, < 4.2.21
- >= 4.2, < 4.2.21, >= 5.1, < 5.1.9, >= 5.2, < 5.2.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |