CVE-2026-1285CWE-407

Potential denial-of-service vulnerability in django.utils.text.Truncator HTML methods

High · published February 3, 2026

CVSS v3.1
7.5
EPSS
1%
Percentile
66.1
In the wild
Unconfirmed
What it is

⚡ A clever crafted input can turn a well-meaning website into a denial-of-service nightmare! Think of it like a restaurant's kitchen running out of space because a delivery of mismatched plates just keeps coming, making it impossible to serve any food. Similarly, the unmatched HTML end tags can overwhelm your server, causing it to freeze up and stop serving requests! An attacker could exploit this vulnerability by submitting inputs filled with unmatched HTML end tags, leading to a complete denial of service. This means your website could grind to a halt, leaving users frustrated and unable to access your content. It's a surprising way to take down a service that seemed perfectly fine!

Put simply

Think of it like a restaurant's kitchen running out of space because a delivery of mismatched plates just keeps coming, making it impossible to serve any food. Similarly, the unmatched HTML end tags can overwhelm your server, causing it to freeze up and stop serving requests! The vulnerability resides in the `django.utils.text.Truncator.chars()` and `Truncator.words()` methods, as well as the `truncatechars_html` and `truncatewords_html` template filters when `html=True`. These can mishandle large quantities of unmatched HTML end tags, causing excessive resource consumption and potential service disruption.

What to do

An attacker could exploit this vulnerability by submitting inputs filled with unmatched HTML end tags, leading to a complete denial of service. This means your website could grind to a halt, leaving users frustrated and unable to access your content. It's a surprising way to take down a service that seemed perfectly fine! Update your Django versions to 6.0.2, 5.2.11, or 4.2.28 immediately to patch this vulnerability. Additionally, audit any older versions you might still be using, as they were not evaluated and could also be at risk. Keeping your framework up to date is key! You've got this! With just a few updates, you can keep your application running smoothly and protect your users. 🛡️

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.01128 · 66.1th percentile
Weakness
CWE-407 · Inefficient Algorithmic Complexity
Published
2026-02-03T14:35Z
EPSS history
Timeline
  • 03 FEB 14:35Z
    Potential denial-of-service vulnerability in django.utils.text.Truncator HTML methods
    cvelistv5