XSS Vulnerability in Mistune Python Markdown Parser
CVE-2026-44896
5.3MEDIUM
What is CVE-2026-44896?
The Mistune Markdown parser allows attackers to exploit a vulnerability in its handling of HTML attributes. Specifically, in versions 3.2.0 and earlier, the render_figure() function does not adequately escape figclass and figwidth inputs. This flaw permits the injection of malicious attributes, leading to an XSS vulnerability even when the HTMLRenderer is configured to escape HTML. Proper validation and escaping measures are needed to mitigate this risk.
Affected Version(s)
mistune <= 3.2.0
