Inefficient Algorithmic Complexity Affecting django package, versions [4.2a1,4.2.28)[5.2a1,5.2.11)[6.0a1,6.0.2)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.99% (58th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-DJANGO-15199281
  • published4 Feb 2026
  • disclosed3 Feb 2026
  • creditSeokchan Yoon

Introduced: 3 Feb 2026

CVE-2026-1285  (opens in a new tab)
CWE-407  (opens in a new tab)

How to fix?

Upgrade Django to version 4.2.28, 5.2.11, 6.0.2 or higher.

Overview

Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.

Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity via the django.utils.text.Truncator.chars and Truncator.words methods (when html=True), as well as the truncatechars_html and truncatewords_html template filters, when processing crafted input containing a large number of unmatched HTML end tags. An attacker can cause excessive resource consumption by submitting such specially crafted input.

CVSS Base Scores

version 4.0
version 3.1