Mistune Math Plugin XSS Escape Bypass (lepture mistune)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.23 % Β· percentile 14 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- NVD status
- Analyzed
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.
Weaknesses (CWE)
- CWE-79 β Improper Neutralization of Input During Web Page Generation
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N | GitHub_M |
| CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N | NVD Β· security-advisories@github.com (Secondary) |
Advisories
- GHSA-8g87-j6q8-g93x β Mistune Math Plugin has an XSS Escape Bypass
- PYSEC-2026-2206 β 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
European references
- ENISA EUVD Β· EUVD-2026-31993
- GCVE Β· GCVE-0-2026-44708
Affected configurations (NVD CPE)
cpe:2.3:a:mistune_project:mistune:*:*:*:*:*:*:*:*< 3.2.1
Affected products
| Product | Versions |
|---|---|
| lepture Β· mistune | affected < 3.2.1 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST β attribution requested |
| ENISA EUVD | ENISA β reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain β this product uses data from the NVD API but is not endorsed or certified by the NVD |