HTML Injection Vulnerability in Mistune Markdown Parser by Lepture
CVE-2026-44898
6.1MEDIUM
What is CVE-2026-44898?
Mistune, a Markdown parser for Python, has a vulnerability in prior versions 3.2.1 that allows an attacker to inject arbitrary HTML tags, including elements, into the rendered table of contents. This issue arises because the render_toc_ul() function does not properly escape user-supplied heading text, leading to the possibility of breaking out of the href attribute context. To mitigate this risk, it is crucial to ensure that Mistune is updated to version 3.2.1 or later.
Affected Version(s)
mistune < 3.2.1
