VDB
Sign up
MEDIUM5.3

GHSA-38c4-r59v-3vqw

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

Quick fix

GHSA-38c4-r59v-3vqw — markdown-it: upgrade to the fixed version with the command below.

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/markdown-it
Introduced in: 13.0.0Fixed in: 14.1.1
Fixnpm install markdown-it@14.1.1

References