5.3medium
Django has a denial-of-service possibility in strip_tags()
- Severity
- 5.3medium CVSS:3.1 by mitre
- Exploit likelihood
- 1.13% (higher than 66% of CVEs)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-8j24-cjrq-gr2mBIT-DJANGO-2025-32873PYSEC-2025-37
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().
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| djangoproject Django | from 4.2 before 4.2.21, from 5.1 before 5.1.9, from 5.2 before 5.2.1, from 4.2.0 before 4.2.21, 5.2 | CVE List, NVD |
| django (PyPI) | from 4.2 before 4.2.21, from 5.1 before 5.1.9, from 5.2 before 5.2.1 | GitHub Advisory Database, PyPA Advisory Database |
| django (Bitnami) | from 4.2.0 before 4.2.21, from 5.1.0 before 5.1.9, from 5.2.0 before 5.2.5 | Bitnami Vulnerability Database |
All scores
| mitre | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
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().
NVD (es)
Se descubrió un problema en Django 4.2 (anterior a 4.2.21), 5.1 (anterior a 5.1.9) y 5.2 (anterior a 5.2.1). La función django.utils.html.strip_tags() es vulnerable a una posible denegación de servicio (rendimiento lento) al procesar entradas que contienen grandes secuencias de etiquetas HTML incompletas. El filtro de plantilla striptags también es vulnerable, ya que está basado en strip_tags().
References
| https://docs.djangoproject.com/en/dev/releases/security/ | article, release-notes, web | |
| https://groups.google.com/g/django-announce | discussion, mailing-list, web | |
| https://www.djangoproject.com/weblog/2025/may/07/security-releases/ | advisory, article, vendor-advisory | |
| http://www.openwall.com/lists/oss-security/2025/05/07/1 | advisory, mailing-list, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-32873 | advisory, web | |
| https://github.com/django/django/commit/9f3419b519799d69f2aba70b9d25abe2e70d03e0 | web | |
| https://docs.djangoproject.com/en/dev/releases/security | web | |
| https://github.com/django/django | package | |
| https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2025-37.yaml | web | |
| https://www.djangoproject.com/weblog/2025/may/07/security-releases | web | |
| https://github.com/advisories/GHSA-8j24-cjrq-gr2m | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-32873 changed 2025-05-08 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-8j24-cjrq-gr2m changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-32873 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2025-37 changed 2026-06-10 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-DJANGO-2025-32873 changed 2026-09-08 | Apache-2.0 |