CVE-2024-53907Djangoproject Django
High 7.5 No auth needed
Follow: this CVE · Djangoproject · Djangoproject Django We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.9% probability of exploitation in 30 days · percentile 80
- Auth required
- No
- Published
- Dec 6, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-770
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Django.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | django |
≥ 5.1.0 < 5.1.4 |
5.1.4 |
pip install "django>=5.1.4" |
| PyPI | django |
≥ 4.2.0 < 4.2.17 |
4.2.17 |
pip install "django>=4.2.17" |
| PyPI | django |
≥ 5.0.0 < 5.0.10 |
5.0.10 |
pip install "django>=5.0.10" |
| PyPI | django |
≥ 5.1 < 5.1.4 |
5.1.4 |
pip install "django>=5.1.4" |
| PyPI | django |
≥ 5.0 < 5.0.10 |
5.0.10 |
pip install "django>=5.0.10" |
| PyPI | django |
≥ 4.2 < 4.2.17 |
4.2.17 |
pip install "django>=4.2.17" |
| PyPI | django |
≥ 5.1 < 5.1.4 |
5.1.4 |
pip install "django>=5.1.4" |
| PyPI | django |
≥ 5.0 < 5.0.10 |
5.0.10 |
pip install "django>=5.0.10" |
| PyPI | django |
≥ 4.2 < 4.2.17 |
4.2.17 |
pip install "django>=4.2.17" |
Per OSV / GitHub Advisories (GHSA-8498-2h75-472j, PYSEC-2024-156). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| djangoproject | django | ≥ 4.2 < 4.2.17 |
| djangoproject | django | ≥ 5.0 < 5.0.10 |
| djangoproject | django | ≥ 5.1 < 5.1.4 |
Official advisories
- python313-Django5-5.2.16-1.1 on GA media · SUSE · openSUSE-SU-2026:11270-1 · Jul 14, 2026 Critical
- python312-Django6-6.0-1.1 on GA media · SUSE · openSUSE-SU-2026:10005-1 · Jan 3, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- docs.djangoproject.com Patch Vendor Advisory
- groups.google.com Release Notes
- www.openwall.com Mailing List Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory