CVE-2026-1285 Details
Description
An issue was discovered in 6.0 before 6.0.2, 5.2 before 5.2.11, and 4.2 before 4.2.28. `django.utils.text.Truncator.chars()` and `Truncator.words()` methods (with `html=True`) and the `truncatechars_html` and `truncatewords_html` template filters allow a remote attacker to cause a potential denial-of-service via crafted inputs containing a large number of unmatched HTML end tags. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Seokchan Yoon for reporting this issue.
A denial-of-service vulnerability has been identified in Django versions 6.0 prior to 6.0.2, 5.2 prior to 5.2.11, and 4.2 prior to 4.2.28. The issue arises in the 'django.utils.text.Truncator' class, specifically within the 'chars()' and 'words()' methods when the 'html' parameter is set to True. Additionally, the 'truncatechars_html' and 'truncatewords_html' template filters are affected. The vulnerability allows remote attackers to cause a denial-of-service by sending crafted inputs that include a large number of unmatched HTML end tags, leading to excessive processing time during HTML parsing.
Users can upgrade to Django 6.0.2, 5.2.11, or 4.2.28 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 3, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://docs.djangoproject.com/en/dev/releases/security/ | Django Software Foundation | PatchVendor Advisory |
| https://groups.google.com/g/django-announce | Django Software Foundation | Release Notes |
| https://www.djangoproject.com/weblog/2026/feb/03/security-releases/ | Django Software Foundation | PatchVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-407 | Inefficient Algorithmic Complexity | Django Software Foundation |
Affected Products
| Product | Versions |
|---|---|
| djangoproject django | >= 4.2, < 4.2.28 >= 5.2, < 5.2.11 >= 6.0, < 6.0.2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | Django Software Foundation |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 4, 2026 | Initial Analysis | [email protected] |
| Feb 3, 2026 | CVE Modified | CISA-ADP |
| Feb 3, 2026 | New CVE Received | Django Software Foundation |