Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
mistune versions before 3.3.0 give table-of-contents headings predictable IDs like toc_1 and toc_2. An attacker who can inject raw HTML with id attributes can redirect same-page links and CSS or JavaScript aimed at those IDs. Upgrade to mistune 3.3.0 or later.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 4.3 | Medium | 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N | CNA (GitHub_M) |
- CISA KEV Not listed.
- EPSS 0.0019, the 8th percentile, on 7 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 14:42 UTC First seen by agentprime
- 31 Oct 2026, 14:42 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-2hm2-hc3v-44h9
- OSV: GHSA-2hm2-hc3v-44h9
- github.com/lepture/mistune/security/advisories/GHSA-2hm2-hc3v-44h9
- nvd.nist.gov/vuln/detail/CVE-2026-59930
- github.com/lepture/mistune/commit/c4093c4742ed0d10d9332fb8edb455869b7b581b
- github.com/lepture/mistune
- github.com/lepture/mistune/releases/tag/v3.3.0
- github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2026-2218.yaml