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().
Published: 2025-05-08
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

No vendor fix or workaround currently provided.

Additional remediation guidance may be available on OpenCVE Cloud.

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

Tue, 15 Jul 2025 13:45:00 +0000

Type Values Removed Values Added
Metrics epss

{'score': 0.00024}

epss

{'score': 0.00025}


Tue, 17 Jun 2025 20:00:00 +0000

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

Thu, 08 May 2025 15:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 08 May 2025 14:30:00 +0000

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

None

threat_severity

Moderate


Thu, 08 May 2025 04:45:00 +0000

Type Values Removed Values Added
References

Thu, 08 May 2025 03:45:00 +0000

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'}


Subscriptions

Djangoproject Django
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2025-05-08T14:42:25.501Z

Reserved: 2025-04-11T00:00:00.000Z

Link: CVE-2025-32873

cve-icon Vulnrichment

Updated: 2025-05-08T04:05:04.028Z

cve-icon NVD

Status : Analyzed

Published: 2025-05-08T04:17:18.157

Modified: 2025-09-02T18:58:27.083

Link: CVE-2025-32873

cve-icon Redhat

Severity : Moderate

Publid Date: 2025-05-08T00:00:00Z

Links: CVE-2025-32873 - Bugzilla

cve-icon OpenCVE Enrichment

No data.

Weaknesses