Packages / markdown-it / Security
markdown-it is has a Regular Expression Denial of Service (ReDoS)
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.1Every release on a timeline
Not affected
15.0.0 – 15.0.3
4 releases, latest
Affected
14.0.0 – 14.1.0
2 releases
Fixed
14.1.1 – 14.3.3
6 releases
Affected
13.0.0 – 13.0.2
3 releases
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.