Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-59930— Mistune toc / TableOfContents directive: heading IDs use predictable `toc_N` numbering with no slugification, allowing collision with attacker-controlled `id="toc_N"` content

CVSS 4.3 · Medium EPSS 0.14% · P4

Possible ATT&CK Techniques 1AI

T1189 · Drive-by Compromise

Affected Version Matrix 1

VendorProductVersion RangeStatus
lepturemistune< 3.3.0affected
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-59930

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Mistune toc / TableOfContents directive: heading IDs use predictable `toc_N` numbering with no slugification, allowing collision with attacker-controlled `id="toc_N"` content
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
对数据真实性的验证不充分
Source: CVE Program / CVE List V5
Vulnerability Title
Hsiaoming Yang mistune 输入验证错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Hsiaoming Yang mistune是日本Hsiaoming Yang个人开发者的一个快速、可扩展的Markdown解析器。 Hsiaoming Yang mistune 3.3.0之前版本存在输入验证错误漏洞,该漏洞源于toc插件和TableOfContents指令生成可预测的toc_N值作为标题ID,而未对标题文本进行slugify处理,导致攻击者控制的id="toc_N"内容可以与生成的锚点冲突,并重定向同页导航、CSS选择器或JavaScript处理程序。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
lepturemistune < 3.3.0 -

II. Public POCs for CVE-2026-59930

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-59930

登录查看更多情报信息。

Vendor Advisories for CVE-2026-59930 (1)

Vendor Pages for CVE-2026-59930 (1)

Same Patch Batch · lepture · 2026-07-08 · 9 CVEs total

CVE-2026-599227.5 HIGHMistune plugins/formatting: quadratic-time parsing on long runs of `~~x~~`, `==x==`, and `
CVE-2026-599257.5 HIGHinline_parser: quadratic-time parsing on long runs of `**x**` and `***x***` emphasis pairs
CVE-2026-599287.5 HIGHMistune block_parser: quadratic-time parsing on long lists of repeated reference-link defi
CVE-2026-599236.1 MEDIUMMistune: XSS via percent-encoded javascript URI bypass in safe_url()
CVE-2026-599296.1 MEDIUMMistune renderers/html.safe_url: HARMFUL_PROTOCOLS list misses legacy and chained schemes
CVE-2026-599245.9 MEDIUMMistune: Arbitrary File Read via Include directive path traversal
CVE-2026-599275.3 MEDIUMMistune directives/include: mutual `.. include::` recursion crashes the renderer with `Rec
CVE-2026-59926Mistune: XSS via unescaped class option in Admonition directive

IV. Related Vulnerabilities

V. Comments for CVE-2026-59930

No comments yet


Leave a comment