CVE-2025-32873Django has a denial-of-service possibility in strip_tags()
A medium-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 1.1% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 1.1%
- percentile 66%
- Fix
- Named by a source
- CVE published 8 May 2025
Reference
None of the "Needs attention" rules apply right now.
EPSS 1.1% (+1) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- django (PyPI): upgrade to 4.2.21 / 5.1.9 / 5.2.1 or later on your release line.
- Commit / pull request: https://github.com/django/django/commit/9f3419b519799d69f2aba70b9d25abe2e70d03e0
- Advisory: https://www.djangoproject.com/weblog/2025/may/07/security-releases/
- Advisory: http://www.openwall.com/lists/oss-security/2025/05/07/1
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2025-32873
- Advisory: https://github.com/advisories/GHSA-8j24-cjrq-gr2m
Who should check
django (PyPI) pkg:pypi/django
- Affected>= 4.2, < 4.2.21Fixed in4.2.21OSV (PYSEC-2025-37)
- Affected>= 5.1, < 5.1.9Fixed in5.1.9OSV (PYSEC-2025-37)
- Affected>= 5.2, < 5.2.1Fixed in5.2.1OSV (PYSEC-2025-37)
djangoproject django product:djangoproject/django
- Affected>= 4.2, < 4.2.21Affected range ends before4.2.21as published by CNA (CVE List)
- Affected>= 5.1, < 5.1.9Affected range ends before5.1.9as published by CNA (CVE List)
- Affected>= 5.2, < 5.2.1Affected range ends before5.2.1as published by CNA (CVE List)
- Affected>= 4.2.0, < 4.2.21Affected range ends before4.2.21as published by CPE data (via the NVD API)
- Affected>= 5.1, < 5.1.9Affected range ends before5.1.9as published by CPE data (via the NVD API)
- Affected5.2Fixed innot namedas published by CPE data (via the NVD API)
Products (not packages) are shown as their sources publish them. We check no product version against these ranges; a fixed version is the one the source names. Ask the vendor's advisory.
Confirmed facts
- CVSS
- 5.3 MEDIUM (version 3.1)
- Score from
- NVD
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-770
- Exploitation (CISA SSVC)
- none
- Automatable (CISA SSVC)
- yes
- Assigned by
- [email protected]
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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().
Update history
- 8 May 2025Published
References
- otherhttps://docs.djangoproject.com/en/dev/releases/security/
- otherhttps://groups.google.com/g/django-announce
- advisoryhttps://www.djangoproject.com/weblog/2025/may/07/security-releases/
- advisoryhttp://www.openwall.com/lists/oss-security/2025/05/07/1
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2025-32873
- commit / pull requesthttps://github.com/django/django/commit/9f3419b519799d69f2aba70b9d25abe2e70d03e0
- otherhttps://docs.djangoproject.com/en/dev/releases/security
- otherhttps://github.com/django/django
- otherhttps://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2025-37.yaml
- otherhttps://www.djangoproject.com/weblog/2025/may/07/security-releases
- advisoryhttps://github.com/advisories/GHSA-8j24-cjrq-gr2m
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- CVE-2025-32873 (CVE List (CNA and CISA ADP data, through the NVD API)), CVE terms of use. Copyright The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation.
- NVD API 2.0 (NIST), the API we query, NVD API terms of use. This product uses the NVD API but is not endorsed or certified by the NVD.
- GHSA-8j24-cjrq-gr2m (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2025-37 (PyPA Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 13 min ago · osv 13 min ago · nvd 74 min ago · epss 12 min ago · JSON · ask via MCP: explain_vulnerability
Also known as BIT-django-2025-32873, GHSA-8j24-cjrq-gr2m, PYSEC-2025-37