MediumGHSA-38c4-r59v-3vqwCVE-2026-2327

markdown-it is has a Regular Expression Denial of Service (ReDoS)

Published 12 Feb 2026 · Updated 10 Sept 2026

Is your project on an affected markdown-it?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Affected package

Affected
>=13.0.0 <14.1.1
Fixed in
14.1.1
Update to the fixed version for your release line, for example:npm install markdown-it@14.1.1

Details

Versions of the package markdown-it from 13.0.0 and before 14.1.1 are vulnerable to Regular Expression Denial of Service (ReDoS) due to the use of the regex /\*+$/ in the linkify function. An attacker can supply a long sequence of * characters followed by a non-matching character, which triggers excessive backtracking and may lead to a denial-of-service condition.

Is GHSA-38c4-r59v-3vqw in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected markdown-it, and gives you the command that fixes it.

More advisories for markdown-it

  • HighCVE-2026-111758markdown-it: Quadratic-time rendering of a single multi-line link reference definition with default options (regression since 14.0) · 20 Oct 2026
  • LowCVE-2026-111766markdown-it: Quadratic-time denial of service in inline HTML parsing with html enabled · 20 Oct 2026
  • HighCVE-2026-111759markdown-it: Quadratic complexity in smartquotes with unmatched closing quotes · 20 Oct 2026
  • MediumGHSA-253c-mchw-3w2rmarkdown-it linkify: true has two quadratic paths, so a few hundred KB of markdown blocks the event loop for tens of seconds · 29 Sept 2026
  • MediumCVE-2026-48988markdown-it: Quadratic complexity DoS in smartquotes rule via replaceAt string operations · 15 Jun 2026
  • HighCVE-2015-10005markdown-it vulnerable to Inefficient Regular Expression Complexity · 27 Dec 2022
All 8 advisories for markdown-it

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.