
CVE catalog
CVE-2026-59930
Mistune is a Python Markdown parser with renderers and…
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.
- Severity
- Medium · CVSS 4.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.19% · Oct 27, 2026
Projects and upstream resources
Reported versions and fixes
Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.
Version impact has not been established. The original provider fields are retained below.
Provider details and historical evidence
Original provider fields
{
"package_releases": [
{
"name": "mistune",
"status": "fixed",
"release": "sid",
"version": "3.4.0-1"
},
{
"name": "mistune",
"status": "vulnerable",
"release": "forky",
"version": "3.1.4-1"
},
{
"name": "mistune",
"status": "vulnerable",
"release": "trixie",
"version": "3.1.3-1"
},
{
"name": "mistune",
"status": "vulnerable",
"release": "bookworm",
"version": "2.0.4-1"
}
],
"fixed_versions": [
{
"bug": 1141770,
"name": "mistune",
"type": "source",
"origin": null,
"release": "sid",
"urgency": "not yet assigned",
"fixed_version": "3.3.4-1"
},
{
"bug": 1141770,
"name": "mistune",
"type": "source",
"origin": null,
"release": "forky",
"urgency": "not yet assigned",
"fixed_version": ""
},
{
"bug": 1141770,
"name": "mistune",
"type": "source",
"origin": null,
"release": "trixie",
"urgency": "not yet assigned",
"fixed_version": ""
},
{
"bug": 1141770,
"name": "mistune",
"type": "source",
"origin": null,
"release": "bookworm",
"urgency": "not yet assigned",
"fixed_version": ""
}
],
"distribution_packages": [
{
"name": "mistune",
"ecosystem": "cpe",
"fixed_version": "not yet fixed"
},
{
"name": "mistune",
"ecosystem": "cpe",
"fixed_version": "3.3.0"
},
{
"name": "mistune",
"ecosystem": "pip",
"fixed_version": "3.3.0"
},
{
"name": "mistune",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "3.3.0"
}
]
}
],
"ecosystem": "PyPI",
"fixed_version": "3.3.0"
},
{
"name": "mistune",
"ranges": [
{
"fixed": "3.3.0",
"introduced": "",
"last_affected": "",
"start_excluding": ""
}
],
"ecosystem": "cpe",
"fixed_version": "3.3.0",
"provider_record_id": "NVD-CVE-2026-59930"
}
]
}Publisher notes
[trixie] mistune: Minor issue [bookworm] mistune: Minor issue
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [python3-mistune]Unknown
Source package: [mistune]
Details (2)
2.0.4-1· all · bookwormAffected
nvd · mistune · debian · bookworm; nvd · mistune · debian · 12
2.0.4-1· all · bookwormAffected
nvd · mistune · debian · bookworm; nvd · mistune · debian · 12
[Debian 13 (Trixie)]
- [python3-mistune]Unknown
Source package: [mistune]
Details (2)
3.1.3-1· all · trixieAffected
nvd · mistune · debian · 13
3.1.3-1· all · trixieAffected
nvd · mistune · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2026_22655-1.json]
- [https://github.com/advisories/GHSA-2hm2-hc3v-44h9]
- [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://nvd.nist.gov/vuln/detail/CVE-2026-59930]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-59930]
- [https://osv.dev/vulnerability/GHSA-2hm2-hc3v-44h9]
- [https://osv.dev/vulnerability/PYSEC-2026-2218]
- [https://security-tracker.debian.org/tracker/CVE-2026-59930]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-59930.json]
[Debian Security Tracker] · [FIRST EPSS] · [GitHub Advisory Database] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]