HighGHSA-j5p7-jf4q-742qCVE-2015-10005

markdown-it vulnerable to Inefficient Regular Expression Complexity

Published 27 Dec 2022 · Updated 8 Nov 2023

Affected package

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

Details

A vulnerability was found in markdown-it up to 2.x. It has been classified as problematic. Affected is an unknown function of the file lib/common/html_re.js. The manipulation leads to inefficient regular expression complexity. Upgrading to version 3.0.0 is able to address this issue. The name of the patch is 89c8620157d6e38f9872811620d25138fc9d1b0d. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-216852.

Is GHSA-j5p7-jf4q-742q 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.

References

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