ADVISORIES

Ubuntu CVE Tracker

UBUNTU-CVE-2025-32873

Details

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().

Affected packages

EcosystemPackageAffected versions
Ubuntu:Pro:14.04:LTSpython-django
All versions, no fix listed
Ubuntu:Pro:16.04:LTSpython-django
All versions, no fix listed
Ubuntu:Pro:18.04:LTSpython-django
All versions before 1:1.11.11-1ubuntu1.21+esm11 (fixed in 1:1.11.11-1ubuntu1.21+esm11)
Ubuntu:20.04:LTSpython-django
All versions before 2:2.2.12-1ubuntu0.29 (fixed in 2:2.2.12-1ubuntu0.29)
Ubuntu:22.04:LTSpython-django
All versions before 2:3.2.12-2ubuntu1.18 (fixed in 2:3.2.12-2ubuntu1.18)
Ubuntu:24.04:LTSpython-django
All versions before 3:4.2.11-1ubuntu1.7 (fixed in 3:4.2.11-1ubuntu1.7)
Ubuntu:25.10python-django
All versions before 3:4.2.18-1ubuntu1.1 (fixed in 3:4.2.18-1ubuntu1.1)

References