Vulnerability in Mistune Python Markdown Parser Affects Markdown Rendering Efficiency
CVE-2026-97699
Key Information:
Badges
What is CVE-2026-97699?
The Mistune library, a widely used Python Markdown parser, experiences a significant performance vulnerability in versions prior to 3.3.4. This issue arises when rendering untrusted Markdown content containing inline images, leading to excessive CPU usage. The root cause is the flawed handling of nested image openers during the parsing process, which allows for inefficient scanning of the remaining image body, thus bypassing certain safeguards meant to limit processing depth. As a result, untrusted inputs can cause the system to remain at full CPU utilization, impacting overall performance. Users are advised to upgrade to version 3.3.4 or later to mitigate this issue.
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.
