Technical impact
Mistune versions earlier than 3.3.3 contain a flaw in InlineParser.parse_link that causes quadratic CPU growth when encountering balanced, nested brackets that do not form a valid link. The vulnerability arises from repeated contains_nested_link scans, draining processing resources and rendering the parser unresponsive. The issue involves a resource exhaustion weakness (CWE‑400) and an unchecked input validation weakness (CWE‑606), leading to a denial of service that affects the availability of any application relying on this parsing routine.
Affected Systems
Products affected are all Mistune releases prior to version 3.3.3, distributed by Lepture. Any deployment that uses these vulnerable versions, regardless of operating system, is susceptible unless patched or mitigated.
Risk and Exploitability
The CVSS score of 6.9 indicates moderate severity, and the EPSS score is not available, suggesting that exploitation likelihood cannot be precisely quantified. The vulnerability, characterized by resource exhaustion (CWE‑400) and unchecked input validation (CWE‑606), is not listed in CISA's KEV catalog, but its impact can be substantial in high‑traffic or user‑generated content scenarios. Attackers can supply crafted Markdown containing thousands of nested brackets, and unless the host environment limits input size or depth, the parser will consume excessive CPU, potentially disrupting services. The impact is confined to availability and does not provide persistence, privilege escalation, or data exfiltration.