CVE-2024-53907
HIGH7.5EPSS 1.0%Django denial-of-service in django.utils.html.strip_tags()
Published: 12/6/2024Modified: 4/28/2026
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.
Affected packages (5)
- Bitnami/django>= 4.2.0, < 4.2.17, >= 5.0.0, < 5.1.4
- Debian/python-djangofrom 0, < 2:2.2.28-1~deb11u3
- Debian/python-djangofrom 0, < 2:2.2.28-1~deb11u3
- PyPI/django>= 5.1.0, < 5.1.4
- PyPI/django>= 5.1, < 5.1.4, >= 5.0, < 5.0.10, >= 4.2, < 4.2.17
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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 |
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
References (10)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2024-53907
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2024-53907
- PATCHhttps://github.com/django/django
- WEBhttps://docs.djangoproject.com/en/dev/releases/security
- WEBhttps://docs.djangoproject.com/en/dev/releases/security/
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2024-156.yaml
- WEBhttps://groups.google.com/g/django-announce
- WEBhttps://lists.debian.org/debian-lts-announce/2024/12/msg00028.html
- WEBhttps://www.djangoproject.com/weblog/2024/dec/04/security-releases
- WEBhttps://www.openwall.com/lists/oss-security/2024/12/04/3