{"id":"CVE-2026-1285","state":"PUBLISHED","title":"Potential denial-of-service vulnerability in django.utils.text.Truncator HTML methods","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.\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.","publishedAt":"2026-02-03T14:35:50.254Z","updatedAt":"2026-02-03T16:22:33.352Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP"},"assigner":"DSF","products":["djangoproject Django"],"affected":[{"vendor":"djangoproject","product":"Django","packageName":"django","defaultStatus":"unaffected","versions":[{"version":"6.0","status":"affected","lessThan":"6.0.2","versionType":"semver"},{"version":"6.0.2","status":"unaffected","versionType":"semver"},{"version":"5.2","status":"affected","lessThan":"5.2.11","versionType":"semver"},{"version":"5.2.11","status":"unaffected","versionType":"semver"},{"version":"4.2","status":"affected","lessThan":"4.2.28","versionType":"semver"},{"version":"4.2.28","status":"unaffected","versionType":"semver"}],"collectionURL":"https://pypi.org/project/Django/","repo":"https://github.com/django/django/"}],"references":["https://docs.djangoproject.com/en/dev/releases/security/","https://groups.google.com/g/django-announce","https://www.djangoproject.com/weblog/2026/feb/03/security-releases/"],"weaknesses":["CWE-407"],"ingestedAt":"2026-10-29T20:11:10.572Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/1xxx/CVE-2026-1285.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-1285","state":"PUBLISHED","datePublished":"2026-02-03T14:35:50.254Z","dateUpdated":"2026-02-03T16:22:33.352Z","assignerShortName":"DSF","assignerOrgId":"6a34fbeb-21d4-45e7-8e0a-62b95bc12c92","dateReserved":"2026-01-21T12:49:21.258Z"},"containers":{"cna":{"title":"Potential denial-of-service vulnerability in django.utils.text.Truncator HTML methods","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"djangoproject","product":"Django","packageName":"django","defaultStatus":"unaffected","versions":[{"version":"6.0","status":"affected","lessThan":"6.0.2","versionType":"semver"},{"version":"6.0.2","status":"unaffected","versionType":"semver"},{"version":"5.2","status":"affected","lessThan":"5.2.11","versionType":"semver"},{"version":"5.2.11","status":"unaffected","versionType":"semver"},{"version":"4.2","status":"affected","lessThan":"4.2.28","versionType":"semver"},{"version":"4.2.28","status":"unaffected","versionType":"semver"}],"collectionURL":"https://pypi.org/project/Django/","repo":"https://github.com/django/django/"}],"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","name":"Django security archive","tags":["vendor-advisory"]},{"url":"https://groups.google.com/g/django-announce","name":"Django releases announcements","tags":["mailing-list"]},{"url":"https://www.djangoproject.com/weblog/2026/feb/03/security-releases/","name":"Django security releases issued: 6.0.2, 5.2.11, and 4.2.28","tags":["vendor-advisory"]}],"metrics":[{"other":{"content":{"value":"moderate","namespace":"https://docs.djangoproject.com/en/dev/internals/security/#security-issue-severity-levels"},"type":"Django severity rating"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-407","lang":"en","description":"CWE-407: Inefficient Algorithmic Complexity","type":"CWE"}]}],"providerMetadata":{"shortName":"DSF","orgId":"6a34fbeb-21d4-45e7-8e0a-62b95bc12c92","dateUpdated":"2026-02-03T14:35:50.254Z"},"impacts":[{"capecId":"CAPEC-130","descriptions":[{"lang":"en","value":"CAPEC-130: Excessive Allocation"}]}],"credits":[{"lang":"en","type":"reporter","value":"Seokchan Yoon"},{"lang":"en","type":"remediation developer","value":"Natalia Bidart"},{"lang":"en","type":"coordinator","value":"Jacob Walls"}],"timeline":[{"lang":"en","time":"2026-01-20T18:00:00.000Z","value":"Initial report received."},{"lang":"en","time":"2026-01-22T18:00:00.000Z","value":"Vulnerability confirmed."},{"lang":"en","time":"2026-02-03T08:00:00.000Z","value":"Security release issued."}],"datePublic":"2026-02-03T08:00:00.000Z","source":{"discovery":"EXTERNAL"},"x_generator":{"engine":"cvelib 1.8.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.5,"attackVector":"NETWORK","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-02-03T16:22:30.293747Z","id":"CVE-2026-1285","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-02-03T16:22:33.352Z"}}]}}}