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

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.11%, higher than 66% of CVEs (2026-12-01)
- Published: 2026-02-03T14:35:50.254Z
- Modified: 2026-09-10T03:50:34.146Z
- Also known as: GHSA-4rrr-2h4v-f3j9, BIT-DJANGO-2026-1285, PYSEC-2026-45
- Weaknesses: CWE-407
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: DSF

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

(As written by CVE List.)

## Affected

- django: from 6.0 before 6.0.2; from 5.2 before 5.2.11; from 4.2 before 4.2.28 (not affected: 6.0.2; 5.2.11; 4.2.28)
- django (PyPI): from 6.0a1 before 6.0.2; from 5.2a1 before 5.2.11; from 4.2a1 before 4.2.28; from 4.2 before 4.2.28; from 5.2 before 5.2.11; from 6.0 before 6.0.2
- djangoproject django: from 4.2 before 4.2.28; from 5.2 before 5.2.11; from 6.0 before 6.0.2
- django (Bitnami): from 4.2.0 before 4.2.28; from 5.2.0 before 5.2.11; from 6.0.0 before 6.0.2

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://docs.djangoproject.com/en/dev/releases/security/> (advisory, fix, patch, vendor-advisory)
- <https://groups.google.com/g/django-announce> (advisory, article, mailing-list, release-notes, web)
- <https://www.djangoproject.com/weblog/2026/feb/03/security-releases/> (advisory, fix, patch, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-1285> (advisory, web)
- <https://github.com/django/django/commit/a33540b3e20b5d759aa8b2e4b9ca0e8edd285344> (web)
- <https://docs.djangoproject.com/en/dev/releases/security> (web)
- <https://github.com/django/django> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2026-45.yaml> (web)
- <https://www.djangoproject.com/weblog/2026/feb/03/security-releases> (web)
- <https://github.com/advisories/GHSA-4rrr-2h4v-f3j9> (advisory)

## Sources

- CVE List: [CVE-2026-1285](https://www.cve.org/CVERecord?id=CVE-2026-1285), CVE Terms of Use, modified 2026-02-03
- GitHub Advisory Database: [GHSA-4rrr-2h4v-f3j9](https://github.com/advisories/GHSA-4rrr-2h4v-f3j9), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-1285](https://nvd.nist.gov/vuln/detail/CVE-2026-1285), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-45](https://osv.dev/vulnerability/PYSEC-2026-45), CC-BY-4.0, modified 2026-06-10
- Bitnami Vulnerability Database: [BIT-DJANGO-2026-1285](https://osv.dev/vulnerability/BIT-DJANGO-2026-1285), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-1285 · Whole record: https://cve.day/CVE-2026-1285.json · Rebuilt by cve.day 2026-11-25T22:59:13.391Z
