Skip to main content
← All vulnerabilities
CVE-2026-59926PYSEC-2026-2214GHSA-G97X-GVCM-X72H

Mistune: XSS via unescaped class option in Admonition directive

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.2.1, 3.3.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • lepture mistune

    fixed in 3.2.1

  • mistunePyPI

    fixed in 3.3.0

References 3

GitHub · lepture/mistune