Inefficient Algorithmic Complexity Affecting mistune package, versions [3.3.0,3.3.4)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.62% (50th 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-MISTUNE-22190629
  • published4 Nov 2026
  • disclosed3 Nov 2026
  • creditzx, manus-use

Introduced: 3 Nov 2026

NewCVE-2026-121437  (opens in a new tab)
CWE-407  (opens in a new tab)

How to fix?

Upgrade mistune to version 3.3.4 or higher.

Overview

Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity in the _process_emphasis_delimiters function in inline_parser.py. An attacker can cause quadratic CPU growth that pins a worker by submitting Markdown with a long sequence of emphasis delimiters, because each time a matched run is collapsed the parser rewrites the index of every remaining delimiter in a full array sweep, making total work grow with the square of the delimiter count. The impact is denial of service only, against any application that parses untrusted Markdown with the default parser.

CVSS Base Scores

version 4.0
version 3.1