CVE-2026-59930: Mistune is a Python Markdown parser with renderers and plugins
CVE-2026-59930 is a medium-severity flaw (CVSS 4.3) affecting mistune. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.0, the toc plugin and TableOfContents directive generate heading IDs as predictable toc_N values without slugifying the heading text, allowing attacker-controlled id="toc_N" content to collide with generated anchors and redirect same-page navigation, CSS selectors, or JavaScript handlers. This issue is fixed in version 3.3.0.
Why this priority
- Public exploit reference
A fixed release or distro patch exists.
Last updated 2026-10-25 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-59930?
mistune: upgrade to 3.3.0. Exact commands for each OS are on this page.
Is CVE-2026-59930 being exploited?
CVE-2026-59930 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-59930 affect?
CVE-2026-59930 affects mistune. Severity is medium (CVSS 4.3). Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.0, the toc plugin and TableOfContents directive generate heading IDs as predictable toc_N values without slugifying the heading text, allowing attacker-controlled
How urgent is CVE-2026-59930?
Priority 22/100. Public exploit reference
Software pages
Related CVEs
- CVE-2026-59922 HIGH 7.5 UPGRADE Mistune is a Python Markdown parser with renderers and plugins
- CVE-2026-59925 HIGH 7.5 UPGRADE Mistune is a Python Markdown parser with renderers and plugins
- CVE-2026-59928 HIGH 7.5 UPGRADE Mistune is a Python Markdown parser with renderers and plugins
- CVE-2026-59924 MEDIUM 5.9 UPGRADE Mistune is a Python Markdown parser with renderers and plugins
- CVE-2026-59927 MEDIUM 5.3 UPGRADE Mistune is a Python Markdown parser with renderers and plugins