Unchecked Input for Loop Condition Affecting markdown-it package, versions >=15.0.0 <15.0.2<14.3.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.6% (48th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-MARKDOWNIT-21277722
  • published20 Oct 2026
  • disclosed19 Oct 2026
  • creditGSGFs7

Introduced: 19 Oct 2026

NewCVE-2026-111759  (opens in a new tab)
CWE-606  (opens in a new tab)

How to fix?

Upgrade markdown-it to version 15.0.2, 14.3.2 or higher.

Overview

markdown-it is a modern pluggable markdown parser.

Affected versions of this package are vulnerable to Unchecked Input for Loop Condition via the process_inlines function in src/rules_core/smartquotes.ts when the typographer option is enabled. The smartquotes rule performs a linear scan of the opener stack for every closing quote token, resulting in quadratic time complexity when quote types do not match. An attacker can supply input with a large number of unmatched quote characters to cause a crash through excessive CPU consumption.

Note: This is only exploitable when the typographer: true option is explicitly set, as the default configuration (typographer: false) does not invoke the smartquotes rule.

CVSS Base Scores

version 4.0
version 3.1