Packages / markdown-it / Security

ModerateVulnerabilityGHSA-38c4-r59v-3vqwCVE-2026-2327Published 12 Feb 2026

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

Your version

Affected releases · markdown-it

  • 14.x14.0.0 – 14.1.0Fixed in 14.1.1
  • 13.x13.0.0 – 13.0.2No fix on this line yet

On 14.x, the newest line:

npm install markdown-it@14.1.1
Every release on a timeline
15.x
  1. Not affected

    15.0.0 – 15.0.3

    4 releases, latest

14.x
  1. Affected

    14.0.0 – 14.1.0

    2 releases

  2. Fixed

    14.1.1 – 14.3.3

    6 releases

13.x
  1. Affected

    13.0.0 – 13.0.2

    3 releases

89 stable releases of markdown-it, oldest to newest, one row per major.

What happens

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.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.