Skip to main content

Inefficient Algorithmic Complexity in Django

CVE-2026-1285

  • Django
Severity High
Score 7.5/10

Summary

An issue was discovered in versions prior to 4.2.28, 5.x prior to 5.2.11, and 6.x prior to 6.0.2. `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. Django would like to thank Seokchan Yoon for reporting this issue.

  • LOW
  • NETWORK
  • NONE
  • UNCHANGED
  • NONE
  • NONE
  • NONE
  • HIGH

CWE-407 - Inefficient Algorithmic Complexity

An algorithm in a product has an inefficient worst-case computational complexity that may be detrimental to system performance and can be triggered by an attacker, typically using crafted manipulations that ensure that the worst case is being reached.

Advisory Timeline

  • Published