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.
Metrics
CVSS 3.1 6.1/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| lepture | mistune | < 3.2.1 |
References
- https://github.com/lepture/mistune/releases/tag/v3.2.1Product, Release Notes
- https://github.com/lepture/mistune/security/advisories/GHSA-8g87-j6q8-g93xExploit, Vendor Advisory
- https://github.com/lepture/mistune/security/advisories/GHSA-8g87-j6q8-g93xExploit, Vendor Advisory
Timeline
- Published
- May 26, 2026
- Last modified
- Jul 24, 2026
- NVD status
- Analyzed