{"id":"CVE-2026-1285","published":"2026-02-03T14:35:50Z","modified":"2026-02-03T16:22:33Z","title":"Potential denial-of-service vulnerability in django.utils.text.Truncator HTML methods","vendor":"djangoproject","product":"Django","tier":"tail","description":{"text":"An issue was discovered in 6.0 before 6.0.2, 5.2 before 5.2.11, and 4.2 before 4.2.28.\n`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.\nEarlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected.\nDjango would like to thank Seokchan Yoon for reporting this issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.01112,"percentile":0.66762,"provenance":"source"},"cwes":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","tags":["vendor-advisory"]},{"url":"https://groups.google.com/g/django-announce","tags":["mailing-list"]},{"url":"https://www.djangoproject.com/weblog/2026/feb/03/security-releases/","tags":["vendor-advisory"]}],"priority":{"score":18.6,"factors":[{"name":"EPSS percentile","points":13.35},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"djangoproject","affectedVersions":[{"vendor":"djangoproject","product":"Django","versions":[">= 6.0, < 6.0.2",">= 5.2, < 5.2.11",">= 4.2, < 4.2.28"]}],"fixedVersions":[{"vendor":"djangoproject","product":"Django","versions":["6.0.2","5.2.11","4.2.28"]}],"capec":[{"id":"CAPEC-130","name":"Excessive Allocation"}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-02-03T16:22:30.293747Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Django","vulnerableRanges":[">=6.0a1, <6.0.2",">=5.2a1, <5.2.11",">=4.2a1, <4.2.28",">=4.2, <4.2.28",">=5.2, <5.2.11",">=6.0, <6.0.2"],"patched":["6.0.2","5.2.11","4.2.28"],"from":["GHSA-4rrr-2h4v-f3j9","PYSEC-2026-45"],"provenance":"source"}],"summary":{"text":"The Truncator.chars() and Truncator.words() methods in Django's django.utils.text module, along with the truncatechars_html and truncatewords_html template filters when HTML handling is enabled, mishandle inputs that contain a large number of unmatched HTML end tags, which can lead to inefficient processing. A remote attacker with no privileges and no user interaction can exploit this by submitting crafted input that reaches these methods, potentially causing a denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:17Z"},"euvd":{"id":"EUVD-2026-5251","exploited":false,"provenance":"source"}}