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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-1284",
"CWE-345"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59930.json"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:mistune_project:mistune:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "3.3.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "c4093c4742ed0d10d9332fb8edb455869b7b581b"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v3.3.0",
"range": [
{
"fixed": "15c3b79325125272263d7d42492ec8f757447191"
}
],
"source": "REFERENCES_TAG"
}
]
}