Allocation of Resources Without Limits or Throttling Affecting mistune package, versions [,3.3.0)


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.35% (28th 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 Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-MISTUNE-17458804
  • published25 Jun 2026
  • disclosed24 Jun 2026
  • creditbhanugoudm041

Introduced: 24 Jun 2026

CVE-2026-49851  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade mistune to version 3.3.0 or higher.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the parse_link_text function of mistune/inline_parser.py, which performs a regex search inside a loop that advances one character at a time when parsing fails, producing O(n²) behavior. An attacker can exhaust CPU and cause denial of service by submitting a small Markdown payload of consecutive [ characters, around 6 KB, to any path that parses it, with no authentication required. Exploitation depends only on the application parsing untrusted Markdown.

CVSS Base Scores

version 4.0
version 3.1