Skip to main content
← All vulnerabilities
CVE-2026-44708PYSEC-2026-2206GHSA-8G87-J6Q8-G93X

Mistune Math Plugin XSS Escape Bypass

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

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

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

  3. Record last updated

Affected versions

  • lepture mistune

    fixed in 3.2.1

  • mistunePyPI

    fixed in 3.2.1

  • mistunePyPI

    through 3.2.0

References 2

GitHub · lepture/mistune