Mistune toc / TableOfContents directive: heading IDs use predictable `toc_N` numbering with no slugification, allowing collision with attacker-controlled `id="toc_N"` content
CVE-2026-59930 is fixed in 3 products on 1 platform, first by SUSE-SU-2026:22655-1, released July 14, 2026. It is not reported as exploited. Patch Radar priority: Routine.
This update for python-mistune fixes the following issues - CVE-2026-59922: quadratic-time parsing on long runs of some markers in `formatting.py` can lead to DoS (bsc#1271117). - CVE-2026-59923: `HTMLRenderer.safe_url()` does not block percent-encoded javascript URIs and allows for XSS (bsc#1271119). - CVE-2026-59924: improper processing of user-supplied include paths in `Include.parse()` can lead to path traversal and arbitrary file reads (bsc#1271121). - CVE-2026-59925: quadratic-time parsing on long runs of some emphasis pairs in `inline_parser` can lead to DoS (bsc#1271125). - CVE-2026-59926: improper escaping in `render_admonition()` can lead to atribute injection and XSS (bsc#1271127). - CVE-2026-59927: uncontrolled recursion when processing two markdown files that include each other can lead to a DoS (bsc#1271128). - CVE-2026-59928: quadratic-time parsing on long lists of repeated reference-link definitions in `block_parser` can lead to DoS (bsc#1271131). - CVE-2026-59929: HARMFUL_PROTOCOLS list misses legacy and chained schemes and allow arbitrary script execution in user agents (bsc#1271132). - CVE-2026-59930: the `toc` plugin and `TableOfContents` directive generate heading IDs with predictable values and allow for collisions with attacker-controlled `id="toc_N"` content (bsc#1271082).
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Linux | |||
| python-mistune · Fedora 43 | 3.3.4-1.fc43 | FEDORA-2026-340793A2F1 | Nov 7, 2026 |
| python-mistune · opensuse-leap 16.0 | 3.1.3-160000.5.1 | OPENSUSE-SU-2026:21339-1 | Jul 14, 2026 |
| python-mistune · sles 16.0 | 3.1.3-160000.5.1 | SUSE-SU-2026:22655-1 | Jul 14, 2026 |
| python-mistune-doc · Fedora 43 | 3.3.4-1.fc43 | FEDORA-2026-340793A2F1 | Nov 7, 2026 |
| python3-mistune · Fedora 43 | 3.3.4-1.fc43 | FEDORA-2026-340793A2F1 | Nov 7, 2026 |
Patch Radar data is free to use with attribution. Terms and how to credit it.
Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.