{"id":81705,"date":"2026-07-08T20:47:28","date_gmt":"2026-07-08T17:17:28","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-59930-mistune-toc-tableofcontents-directive-heading-ids-use-predictable-toc_n-numbering-with-no-slugification-allowing-collision-with-attacker-controlled-idtoc_n-content\/"},"modified":"2026-07-08T20:47:28","modified_gmt":"2026-07-08T17:17:28","slug":"cve-2026-59930-mistune-toc-tableofcontents-directive-heading-ids-use-predictable-toc_n-numbering-with-no-slugification-allowing-collision-with-attacker-controlled-idtoc_n-content","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-59930-mistune-toc-tableofcontents-directive-heading-ids-use-predictable-toc_n-numbering-with-no-slugification-allowing-collision-with-attacker-controlled-idtoc_n-content\/","title":{"rendered":"CVE-2026-59930 &#8211; Mistune toc \/ TableOfContents directive: heading IDs use predictable `toc_N` numbering with no slugification, allowing collision with attacker-controlled `id=&#8221;toc_N&#8221;` content"},"content":{"rendered":"<p>CVE ID :CVE-2026-59930<\/p>\n<p>  Published : July 8, 2026, 5:17 p.m. | 31\u00a0minutes ago<\/p>\n<p>  Description :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=&#8221;toc_N&#8221; 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.<\/p>\n<p>  Severity: 4.3 | MEDIUM<\/p>\n<p>  Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2026-59930 Published : July 8, 2026, 5:17 p.m. | 31\u00a0minutes ago Description :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=&#8221;toc_N&#8221; content to collide with generated anchors and &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-81705","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/81705","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=81705"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/81705\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=81705"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=81705"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=81705"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}