Uncontrolled Recursion Affecting mistune package, versions [,3.3.3)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.28% (20th 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 Uncontrolled Recursion vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-MISTUNE-19256865
  • published25 Aug 2026
  • disclosed24 Aug 2026
  • creditwan1yan

Introduced: 24 Aug 2026

NewCVE-2026-76098  (opens in a new tab)
CWE-674  (opens in a new tab)

How to fix?

Upgrade mistune to version 3.3.3 or higher.

Overview

Affected versions of this package are vulnerable to Uncontrolled Recursion through the InlineParser emphasis processing in src/mistune/inline_parser.py. An attacker can crash the Python process by supplying Markdown with a very long run of emphasis markers, such as hundreds or thousands of consecutive * characters. The inline parser turns those markers into deeply nested emphasis and strong tokens, and rendering that token tree exhausts Python’s recursion limit. In applications that accept untrusted Markdown, this breaks page rendering or request handling for all users sharing the affected process.

CVSS Base Scores

version 4.0
version 3.1