VDB
CVE-2026-59930
CVE-2026-59930
PUBLISHED
CVSS 4.3 MEDIUM
Reported by GitHub_M · Published July 8, 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.
Risk Scores
CVSS 3.1
4.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| lepture | mistune | < 3.3.0 |
| lepture | mistune | < 3.3.0, < 3.3.0 |
Timeline
- Jul 8, 2026 CVE Published
- Jul 9, 2026 EPSS Score
- Jul 9, 2026 Coalition ESS Score
- Jul 9, 2026 CVE Updated
- Aug 7, 2026 EPSS Score
References
- https://github.com/lepture/mistune/security/advisories/GHSA-2hm2-hc3v-44h9 x_refsource_CONFIRM
- https://github.com/lepture/mistune/commit/c4093c4742ed0d10d9332fb8edb455869b7b581b x_refsource_MISC
- https://github.com/lepture/mistune/releases/tag/v3.3.0 x_refsource_MISC