Security Resilience

CVE-2026-1285

DoS in Djangoproject Django 4.2 – 4.2.28

Published
03 February 2026
Modified
04 February 2026
Patch / advisory
CVSS Score v3.1 7.5
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS Score 0.013 69th percentile
Risk Priority 60 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2026-1285 is a high-severity Inefficient Algorithmic Complexity (CWE-407) vulnerability in Djangoproject Django. Its CVSS base score is 7.5 (High).

Operationally, ranked in the top 31% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SC-5 (Denial-of-service Protection) and SC-6 (Resource Availability) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2026-1285 is a denial-of-service vulnerability in Django's text truncation utilities, specifically affecting the `django.utils.text.Truncator.chars()` and `Truncator.words()` methods when used with `html=True`, as well as the `truncatechars_html` and `truncatewords_html` template filters. The issue impacts Django versions 6.0 before 6.0.2, 5.2 before 5.2.11, and 4.2 before 4.2.28. Earlier unsupported series, such as 5.0.x, 4.1.x, and 3.2.x, were not evaluated but may also be affected.

A remote unauthenticated attacker can exploit this vulnerability over the network with low complexity by supplying crafted inputs containing a large number of unmatched HTML end tags to the affected functions or filters. Successful exploitation leads to resource exhaustion and potential denial-of-service, with no impact on confidentiality or integrity. The vulnerability carries a CVSS v3.1 base score of 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) and is associated with CWE-407.

Django has issued security releases addressing this issue, recommending upgrades to version 6.0.2, 5.2.11, or 4.2.28 or later for supported series. Mitigation details and patches are documented in the official advisories at https://docs.djangoproject.com/en/dev/releases/security/, the django-announce group at https://groups.google.com/g/django-announce, and the security release weblog at https://www.djangoproject.com/weblog/2026/feb/03/security-releases/. The issue was reported by Seokchan Yoon.

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

Related Threats

CVEs Like This One

CVE-2025-64460Same product: Djangoproject Django
CVE-2026-33033Same product: Djangoproject Django
CVE-2025-64458Same product: Djangoproject Django
CVE-2025-14550Same product: Djangoproject Django
CVE-2026-5766Same product: Djangoproject Django
CVE-2026-6907Same product: Djangoproject Django
CVE-2024-39614Same product: Djangoproject Django
CVE-2026-6873Same product: Djangoproject Django
CVE-2025-59682Same product: Djangoproject Django
CVE-2025-32873Same product: Djangoproject Django

Affected Assets

djangoproject
django
4.2 — 4.2.28 · 5.2 — 5.2.11 · 6.0 — 6.0.2

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Denial-of-service protection directly reduces the impact of resource exhaustion triggered by worst-case algorithmic inputs.

Resource availability allocation limits blast radius when an inefficient algorithm is forced into its worst case.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing can uncover performance issues stemming from algorithmic complexity.

finds

Monitoring activities can identify anomalous resource consumption indicative of algorithmic complexity attacks.

prevents

Secure coding practices can include guidelines to avoid or mitigate inefficient algorithms.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-407, a class-level weakness, and none of its children carries one either.

References