ReDoS Vulnerability in Mistune Affecting Multiple Versions
CVE-2026-33079
What is CVE-2026-33079?
In versions 3.0.0a1 through 3.2.0 of Mistune, a Regular Expression Denial of Service (ReDoS) vulnerability exists due to the regex pattern in the LINK_TITLE_RE function. This vulnerability allows attackers to exploit the Markdown parsing process by submitting specially crafted link titles that trigger catastrophic backtracking in the regex engine. Overlapping alternatives in the regex pattern create ambiguity, leading to significant CPU consumption and rendering applications utilizing Mistune unresponsive. The issue can be exploited through normal Markdown parsing, particularly when providing inline links and block link reference definitions. Proper input validation and careful regex optimization are essential to mitigate this vulnerability.
Affected Version(s)
mistune >=3.0.0a1, <= 3.2.0
