# CVE-2025-32873: Django has a denial-of-service possibility in strip_tags()

- Severity: Medium 5.3 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 14.3%, higher than 96% of CVEs (2026-12-01)
- Published: 2025-05-08T00:00:00.000Z
- Modified: 2026-09-10T03:50:57.424Z
- Also known as: GHSA-8j24-cjrq-gr2m, BIT-DJANGO-2025-32873, PYSEC-2025-37
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: mitre

## 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().

(As written by CVE List.)

## Affected

- 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
- django (PyPI): from 4.2 before 4.2.21; from 5.1 before 5.1.9; from 5.2 before 5.2.1
- 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

## Every score

- mitre: 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`
- GitHub: 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`
- NVD: 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`
- Bitnami Vulnerability Database: rating Medium

## 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

- CVE List: [CVE-2025-32873](https://www.cve.org/CVERecord?id=CVE-2025-32873), CVE Terms of Use, modified 2025-05-08
- GitHub Advisory Database: [GHSA-8j24-cjrq-gr2m](https://github.com/advisories/GHSA-8j24-cjrq-gr2m), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-32873](https://nvd.nist.gov/vuln/detail/CVE-2025-32873), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2025-37](https://osv.dev/vulnerability/PYSEC-2025-37), CC-BY-4.0, modified 2026-06-10
- Bitnami Vulnerability Database: [BIT-DJANGO-2025-32873](https://osv.dev/vulnerability/BIT-DJANGO-2025-32873), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2025-32873 · Whole record: https://cve.day/CVE-2025-32873.json · Rebuilt by cve.day 2026-11-25T22:58:57.789Z
