# CVE-2024-53907: Django denial-of-service in django.utils.html.strip_tags()

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- 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): 1.39%, higher than 73% of CVEs (2026-12-01)
- Published: 2024-12-06T00:00:00.000Z
- Modified: 2026-09-10T03:50:56.451Z
- Also known as: GHSA-8498-2h75-472j, BIT-DJANGO-2024-53907, PYSEC-2024-156
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: mitre

## Description

An issue was discovered in Django 5.1 before 5.1.4, 5.0 before 5.0.10, and 4.2 before 4.2.17. The strip_tags() method and striptags template filter are subject to a potential denial-of-service attack via certain inputs containing large sequences of nested incomplete HTML entities.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- djangoproject django: from 5.1 before 5.1.4; from 5.0 before 5.0.10; from 4.2 before 4.2.17
- django (PyPI): from 5.1.0 before 5.1.4; from 4.2.0 before 4.2.17; from 5.0.0 before 5.0.10; from 5.1 before 5.1.4; from 5.0 before 5.0.10; from 4.2 before 4.2.17
- django (Bitnami): from 4.2.0 before 4.2.17; from 5.0.0 before 5.1.4

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U`
- Bitnami Vulnerability Database: rating High

## References

- <https://docs.djangoproject.com/en/dev/releases/security/> (advisory, patch, vendor-advisory, web)
- <https://groups.google.com/g/django-announce> (article, release-notes, web)
- <https://www.openwall.com/lists/oss-security/2024/12/04/3> (advisory, mailing-list, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2024/12/msg00028.html> (advisory, mailing-list, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-53907> (advisory, 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-2024-156.yaml> (web)
- <https://www.djangoproject.com/weblog/2024/dec/04/security-releases> (web)
- <https://github.com/advisories/GHSA-8498-2h75-472j> (advisory)

## Sources

- CVE List: [CVE-2024-53907](https://www.cve.org/CVERecord?id=CVE-2024-53907), CVE Terms of Use, modified 2024-12-31
- GitHub Advisory Database: [GHSA-8498-2h75-472j](https://github.com/advisories/GHSA-8498-2h75-472j), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-53907](https://nvd.nist.gov/vuln/detail/CVE-2024-53907), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-156](https://osv.dev/vulnerability/PYSEC-2024-156), CC-BY-4.0, modified 2026-06-10
- Bitnami Vulnerability Database: [BIT-DJANGO-2024-53907](https://osv.dev/vulnerability/BIT-DJANGO-2024-53907), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-53907 · Whole record: https://cve.day/CVE-2024-53907.json · Rebuilt by cve.day 2026-11-25T22:58:49.774Z
