CVE-2026-44708
Received Received - Intake
Math Plugin XSS in Mistune Markdown Parser

Publication date: 2026-05-26

Last updated on: 2026-05-26

Assigner: GitHub, Inc.

Description
Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.2.1, the mistune math plugin renders inline math ($...$) and block math ($$...$$) by concatenating the raw user-supplied content directly into the HTML output without any HTML escaping. This occurs even when the parser is explicitly created with escape=True, which is supposed to guarantee that all user-controlled text is sanitised before reaching the DOM. This vulnerability is fixed in 3.2.1.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-05-26
Last Modified
2026-05-26
Generated
2026-05-27
AI Q&A
2026-05-27
EPSS Evaluated
N/A
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
lepture mistune to 3.2.1 (inc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability exists in the Mistune Python Markdown parser's math plugin before version 3.2.1. The plugin renders inline math ($...$) and block math ($$...$$) by directly inserting the raw user-supplied content into the HTML output without performing any HTML escaping. This means that even if the parser is configured with escape=True, which is intended to sanitize all user input before it reaches the DOM, the math plugin bypasses this protection. As a result, malicious content can be injected into the HTML output.


How can this vulnerability impact me? :

This vulnerability can lead to cross-site scripting (XSS) attacks because user-supplied content is inserted into HTML without proper escaping. An attacker could exploit this by injecting malicious scripts into the math expressions, which would then be executed in the context of the victim's browser. This can compromise the confidentiality and integrity of user data, potentially leading to unauthorized actions or data theft.


What immediate steps should I take to mitigate this vulnerability?

To mitigate this vulnerability, you should upgrade the mistune package to version 3.2.1 or later, where the issue is fixed.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart