Python Markdown Parser Vulnerability in Mistune by Lepture
CVE-2026-97698
Key Information:
Badges
What is CVE-2026-97698?
The Mistune Python Markdown parser is susceptible to a performance issue where the parse_link_href function conducts unbounded parenthesis-balancing scans for unmatched opening parentheses linked to empty [] link labels. This flaw results in quadratic CPU workload, causing severe performance degradation by keeping a worker at maximum utilization when rendering untrusted Markdown. The problem has been resolved in Mistune version 3.3.4, which is critical for users to implement to ensure optimal performance and security while utilizing the default HTML renderer without plugins.
Affected Version(s)
mistune < 3.3.4
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
