CVE-2026-59930
Published:July 08, 2026
Updated:August 05, 2026
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.
Affected Packages
mistune (CONDA):
Affected version(s) >=0.5 <3.3.0Fix Suggestion:
Update to version 3.3.0https://github.com/lepture/mistune.git (GITHUB):
Affected version(s) >=v0.1.0 <v3.3.0Fix Suggestion:
Update to version v3.3.0mistune (PYTHON):
Affected version(s) >=0.1.0 <3.3.0Fix Suggestion:
Update to version 3.3.0mistune (PYTHON):
Affected version(s) >=0.1.0 <3.3.0Fix Suggestion:
Update to version 3.3.0Related Resources (7)
Do you need more information?
Contact UsCVSS v4
Base Score:
5.3
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
4.3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
NONE
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
EPSS
Base Score:
0.14