django
Affected
- introduced
4.2, fixed4.2.21(ecosystem)
Fixed versions
4.2.21
Fix
- Fixed version
4.2.21pip install --upgrade django==4.2.21
Advisory
Also known as: BIT-django-2025-32873, CVE-2025-32873, PYSEC-2025-37
Django has a denial-of-service possibility in strip_tags()
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().
Medium Basis: The source's own band: MODERATE
4.2, fixed 4.2.21 (ecosystem)4.2.21
4.2.21pip install --upgrade django==4.2.215.1, fixed 5.1.9 (ecosystem)5.1.9
5.1.9pip install --upgrade django==5.1.95.2, fixed 5.2.1 (ecosystem)5.2.1
5.2.1pip install --upgrade django==5.2.1Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0