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

Goal: 1000 CNY · Raised: 1310 CNY

100%

CVE-2026-44898— Mistune TOC Anchor Injection XSS

CVSS 6.1 · Medium EPSS 0.03% · P9

Possible ATT&CK Techniques 1AI

T1189 · Drive-by Compromise

Affected Version Matrix 1

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

I. Basic Information for CVE-2026-44898

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 Anchor Injection XSS
Source: NVD (National Vulnerability Database)
Vulnerability Description
Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.2.1, render_toc_ul() builds a <ul> table-of-contents tree from a list of (level, id, text) tuples. Both the id value (used as href="#<id>") and the text value (used as the visible link label) are inserted into <a> tags via a plain Python format string — with no HTML escaping applied to either value. When heading IDs are derived from user-supplied heading text (the standard use-case for readable slug anchors), an attacker can craft a heading whose text breaks out of the href="#..." attribute context, injecting arbitrary HTML tags including <script> blocks directly into the rendered TOC. This vulnerability is fixed in 3.2.1.
Source: NVD (National Vulnerability Database)
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Source: NVD (National Vulnerability Database)
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: NVD (National Vulnerability Database)
Vulnerability Title
mistune 跨站脚本漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
mistune是Hsiaoming Yang个人开发者的一个快速而强大的 Python Markdown 解析器。 Mistune 3.2.1之前版本存在跨站脚本漏洞,该漏洞源于render_toc_ul()使用Python格式字符串将id和text值插入a标签而未进行HTML转义,攻击者可通过构造包含特殊字符的标题文本,在渲染目录中注入任意HTML标签。
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.2.1 -

II. Public POCs for CVE-2026-44898

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-44898

登录查看更多情报信息。

Vendor Advisories for CVE-2026-44898 (1)

Vendor Pages for CVE-2026-44898 (1)

Same Patch Batch · lepture · 2026-05-26 · 5 CVEs total

CVE-2026-448976.1 MEDIUMMistune Heading ID Attribute Injection XSS
CVE-2026-447086.1 MEDIUMMistune Math Plugin XSS Escape Bypass
CVE-2026-448994.7 MEDIUMMistune Image Directive CSS Injection Vulnerability
CVE-2026-44896Mistune: XSS via unescaped figclass/figwidth in Figure directive

IV. Related Vulnerabilities

V. Comments for CVE-2026-44898

No comments yet


Leave a comment