CVE-2024-53907
Django denial-of-service in django.utils.html.strip_tags()
Reported by mitre · Published December 6, 2024
django is fixed in 5.1.4, 5.0.10 and 4.2.17 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| django | PyPI | 5.1.4, 5.0.10, 4.2.17 |
| awx | Chainguard | 24.6.1-r2 |
| py3-django | Wolfi | 5.1.4-r0 |
| django | Bitnami | 5.1.4, 4.2.17 |
| py3-django | Alpine | 4.2.20-r0 |
| django | Bitnami | 5.1.4, 4.2.17 |
| django | djangoproject | 5.1.4, 5.0.10, 4.2.17 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| PyPI | Django | 5.0.0, 4.2.0, 5.1.0 |
| chainguard | awx | 0 |
| wolfi | py3-django | 0 |
| alpine | py3-django | 0 |
| djangoproject | django | |
| n/a | n/a | * |
| djangoproject | django | 4.2, 5.0, 5.1 |
| chainguard | py3-django | 0 |
Timeline
- Dec 4, 2024 CVE Published
- Dec 7, 2024 EPSS Score (30 in total, the first dated here)
- Dec 31, 2024 Coalition ESS Score (18 in total, the first dated here)
- Dec 31, 2024 CVE Updated
- Mar 10, 2026 Security Advisory (17 in total, the first dated here)
- Aug 10, 2026 Distribution Patch (9 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-53907
vulnetix vdb fixes CVE-2024-53907
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-53907/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-53907 advisory
- https://github.com/advisories/GHSA-8498-2h75-472j advisory
- https://docs.djangoproject.com/en/dev/releases/security url
- https://github.com/django/django url
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2024-156.yaml advisory
- https://www.djangoproject.com/weblog/2024/dec/04/security-releases url
- https://lists.debian.org/debian-lts-announce/2024/12/msg00028.html url