{"cve":"CVE-2026-59930","nvd":{"published":"2026-07-08T17:17:28.867","modified":"2026-10-25T17:10:00.197","status":"Analyzed","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=\"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","score":4.3},"cwes":["CWE-345","CWE-1284"],"references":["https://github.com/lepture/mistune/commit/c4093c4742ed0d10d9332fb8edb455869b7b581b","https://github.com/lepture/mistune/releases/tag/v3.3.0","https://github.com/lepture/mistune/security/advisories/GHSA-2hm2-hc3v-44h9","https://github.com/lepture/mistune/security/advisories/GHSA-2hm2-hc3v-44h9"],"products":["mistune_project:mistune"],"source":"nvd","synced_at":"2026-10-25T17:50:06.907763985+00:00"},"epss":{"cve":"CVE-2026-59930","score":0.00192,"percentile":0.08735,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-2hm2-hc3v-44h9","url":"https://osv.dev/vulnerability/GHSA-2hm2-hc3v-44h9","summary":"Mistune toc / TableOfContents directive: heading IDs use predictable `toc_N` numbering with no slugification, allowing collision with attacker-controlled `id=\"toc_N\"` content","modified":"2026-07-20T21:46:43.352385519Z","packages":[{"ecosystem":"PyPI","name":"mistune","purl":"pkg:pypi/mistune","ranges":["<3.3.0"],"fixed":["3.3.0"]}]},{"id":"PYSEC-2026-2218","url":"https://osv.dev/vulnerability/PYSEC-2026-2218","summary":"","modified":"2026-07-13T07:15:18.864143856Z","packages":[{"ecosystem":"PyPI","name":"mistune","purl":"pkg:pypi/mistune","ranges":["<3.3.0"],"fixed":["3.3.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}