cve.bz

CVE-2025-32873 djangoproject django

5.3 mediumEPSS 14%Fix available

Medium (5.3) in djangoproject django. EPSS 14% estimated probability of exploitation activity in the next 30 days. Fixed in django 4.2.21, 5.1.9, 5.2.1.

On this page
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().

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS
14% (unchanged from 14% a week ago; 14% 30 days ago) estimated probability of exploitation activity in the next 30 days; 97th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-05-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-770 Allocation of Resources Without Limits or Throttling
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-32873 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-32873?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-32873?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-32873 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
djangoproject Djangofrom 4.2 before 4.2.21
djangoproject Djangofrom 5.1 before 5.1.9
djangoproject Djangofrom 5.2 before 5.2.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-8j24-cjrq-gr2mPyPIdjango>=4.2 <4.2.214.2.21
GHSA-8j24-cjrq-gr2mPyPIdjango>=5.1 <5.1.95.1.9
GHSA-8j24-cjrq-gr2mPyPIdjango>=5.2 <5.2.15.2.1
PYSEC-2025-37PyPIdjango>=4.2 <4.2.21
>=5.1 <5.1.9
>=5.2 <5.2.1
4.2.21, 5.1.9, 5.2.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11python-django2:2.2.28-1~deb11u7DLA-4210-1
Debian12python-django3:3.2.25-0+deb12u1DEBIAN-CVE-2025-32873 DSA-6136-1
Debian13, 14python-django3:4.2.21-1DEBIAN-CVE-2025-32873
Ubuntu20.04:LTSpython-django2:2.2.12-1ubuntu0.29UBUNTU-CVE-2025-32873 USN-7501-1
Ubuntu22.04:LTSpython-django2:3.2.12-2ubuntu1.18UBUNTU-CVE-2025-32873 USN-7501-1
Ubuntu24.04:LTSpython-django3:4.2.11-1ubuntu1.7UBUNTU-CVE-2025-32873 USN-7501-1
Ubuntu25.10python-django3:4.2.18-1ubuntu1.1UBUNTU-CVE-2025-32873
UbuntuPro:14.04:LTS, Pro:16.04:LTSpython-djangono fix listedUBUNTU-CVE-2025-32873
UbuntuPro:18.04:LTSpython-django1:1.11.11-1ubuntu1.21+esm11UBUNTU-CVE-2025-32873 USN-7501-2
SUSELinux Enterprise Module for Package Hub 15 SP6python-Django4.2.11-150600.3.21.1SUSE-SU-2025:1523-1
SUSELinux Enterprise Module for Package Hub 15 SP7python-Django4.2.11-150600.3.21.1SUSE-SU-2025:01523-1
openSUSELeap 15.6python-Django4.2.11-150600.3.21.1SUSE-SU-2025:1523-1
openSUSETumbleweedpython-Django5.2.1-1.1openSUSE-SU-2025:15087-1
openSUSETumbleweedpython-Django44.2.21-1.1openSUSE-SU-2025:15082-1
openSUSETumbleweedpython-Django55.2.16-1.1openSUSE-SU-2026:11270-1
openSUSETumbleweedpython-Django66.0-1.1openSUSE-SU-2026:10005-1
Alpinev3.21, v3.22, v3.23 and 1 morepy3-django4.2.21-r0ALPINE-CVE-2025-32873

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/ee-dellemc-openmanage-rhel8Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/lightspeed-rhel8Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/platform-resource-runner-rhel8Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/lightspeed-rhel8Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/platform-resource-runner-rhel8Fix deferred
Red Hat Ansible Automation Platform 2automation-controllerFix deferred
Red Hat Ansible Automation Platform 2python-djangoFix deferred
Red Hat Certification for Red Hat Enterprise Linux 7python-djangoFix deferred
Red Hat Discovery 1discovery/discovery-server-rhel9Fix deferred
Red Hat OpenStack Platform 16.2python-django20Fix deferred
Red Hat OpenStack Platform 17.1python-djangoFix deferred
Red Hat OpenStack Platform 18.0python-djangoFix deferred
Red Hat Satellite 6python-djangoFix deferred
Red Hat Satellite 6satellite:el8/python-djangoFix deferred
Red Hat Update Infrastructure 4 for Cloud Providerspython-djangoFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-32873.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-770 (20).

References

Check your stackJSON