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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-111758— markdown-it: Quadratic-time rendering of a single multi-line link reference definition with default options (regression since 14.0)

Quick assessment

Affected
markdown-it markdown-it
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

markdown-it 是一个 Markdown 解析器。在 14.1.0 至 14.3.3(不含)以及 15.0.0 至 15.0.3(不含)的版本中,若链接引用定义的标签(label)或标题(title)未正确闭合,在默认配置下会导致 O(n²) 的时间复杂度。在 文件中,续行内容通过 的方式惰性拉取;随后调用的 和 操作会强制将 V8 的 cons-string 扁平化,从而复制截至目前收集的所有内容;而这一操作发生在解析器判定该定义无效之前。触发此问题无需任何特殊配置选项。该漏洞已在 14.3.3 和 15

CVSS 7.5 · High
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-111758

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
markdown-it: Quadratic-time rendering of a single multi-line link reference definition with default options (regression since 14.0)
Source: CVE Program / CVE List V5
Vulnerability Description
markdown-it is a Markdown parser. From versions 14.1.0 to before 14.3.3, and 15.0.0 to before 15.0.3, a link reference definition whose label or title is never closed is O(n²) with default options. Continuation lines are pulled lazily with str += lineContent in src/rules_block/reference.ts, and the subsequent charCodeAt and slice calls flatten the V8 cons-string, copying everything collected so far; this runs before the rule decides the definition is invalid. No options are required to trigger it. This issue has been patched in versions 14.3.3 and 15.0.3.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
未加控制的资源消耗(资源穷尽)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
markdown-it markdown-it >= 14.1.0, < 14.3.3 -

II. Public POCs for CVE-2026-111758

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-111758

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-111758 (1)

Vendor Pages for CVE-2026-111758 (1)

Other References for CVE-2026-111758 (2)

IV. Related Vulnerabilities

V. Comments for CVE-2026-111758

No comments yet


Leave a comment