XSS in Lepture Mistune
CVE-2026-59926
- CVSS v3
- 6.1 Medium
- Public exploits
- None known
- EPSS
- 0.003 · 26.3th percentile
- Published
- 2026-07-08
What to do
- Fixed in
3.2.1- Affected
- 2 affected products
Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.2.1, render_admonition() in src/mistune/directives/admonition.py concatenates the Admonition directive :class: option into the HTML class attribute without escaping, allowing attribute injection and cross-site scripting even when HTMLRenderer escape mode is enabled. This issue is fixed in version 3.2.1.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
- Attack Vector
- Network
AV:N - Attack Complexity
- Low
AC:L - Privileges Required
- None
PR:N - User Interaction
- Required
UI:R - Scope
- Changed
S:C - Confidentiality
- Low
C:L - Integrity
- Low
I:L - Availability
- None
A:N
EPSS exploit prediction
EPSS 0.003, 26.3th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Lepture Mistune — versions < 3.2.1
- Mistune Project