CVE-2026-111758: markdown-it quadratic-time rendering of unclosed link reference

CVE-2026-111758 · Severity: high · CVSS 7.5 · Published 2026-10-20

markdown-it is a Markdown parser widely used in web applications, documentation systems, and chat interfaces. An attacker can send specially crafted Markdown with an unclosed link reference definition to cause the parser to consume excessive CPU time, blocking the application's event loop for seconds and causing denial of service. A 400 KB malicious input stalls processing for about 18 seconds.

Technologies: Markdown-It, markdown-it (npm). Vendors: Markdown-It, npm.

Quick answers

Is CVE-2026-111758 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-111758 being exploited in the wild.
How severe is CVE-2026-111758?
High severity, with a CVSS score of 7.5, published 20 October 2026.
Which products and versions are affected?
Markdown-It 14.0.0 through 15.0.2; markdown-it (npm) >= 14.1.0, < 14.3.3, SEMVER:introduced=14.1.0,fixed=14.3.3.
Is there a fix for CVE-2026-111758?
Yes. markdown-it (npm): upgrade to 14.3.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-111758 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-111758?
Check whether you run Markdown-It or markdown-it (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • markdown-it (npm): upgrade to 14.3.3 or later
    npm install markdown-it@14.3.3

Technical details

The reference.ts rule accumulates continuation lines using string concatenation (str += lineContent), then repeatedly calls charCodeAt and slice on the result, forcing V8 to flatten cons-strings and copy all accumulated content, creating O(n²) behavior. The vulnerability is reachable via default options without any special configuration. A fix requires tracking positions in the source buffer or collecting line slices in an array instead of concatenating strings.

Affected products

  • markdown-it markdown-it 14.0.0 through 15.0.2

Identifiers

  • CVE-2026-111758
  • GHSA-gfr2-rv44-r23c

Timeline

  • 2026-10-20: disclosed: GHSA-gfr2-rv44-r23c published

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.