CVE-2025-32873

django: Django StripTags Denial of Service

Published May 8, 2025 CVSS 3.1 · 5.3 Medium EPSS 14.3% KEV · Not listed
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().

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4210-1 python-django security update
Debian DSA Debian DSA DSA-6136-1 python-django security update
EUVD EUVD EUVD-2025-13952 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().
Github GHSA Github GHSA GHSA-8j24-cjrq-gr2m Django has a denial-of-service possibility in strip_tags()
Ubuntu USN Ubuntu USN USN-7501-1 Django vulnerability
Ubuntu USN Ubuntu USN USN-7501-2 Django vulnerability
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00024}

epss

{'score': 0.00025}

Type Values Removed Values Added
First Time appeared Djangoproject
Djangoproject django
CPEs cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
cpe:2.3:a:djangoproject:django:5.2:*:*:*:*:*:*:*
Vendors & Products Djangoproject
Djangoproject django
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title django: Django StripTags Denial of Service
References
Metrics threat_severity

None

threat_severity

Moderate

Type Values Removed Values Added
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().
Weaknesses CWE-770
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
May 8, 2025, 2:42 PM
Reserved
Apr 11, 2025, 12:00 AM
Status
Analyzed
Published
May 8, 2025, 4:17 AM
Modified
Jun 17, 2026, 9:12 AM
Severity
Moderate
Public date
May 8, 2025, 12:00 AM