HighGHSA-x5pg-88wf-qq4pCVE-2017-16114

Regular Expression Denial of Service in marked

Published 24 Jul 2018 · Updated 8 Nov 2023

Affected package

Affected
<0.3.9
Fixed in
0.3.9
Update to the fixed version for your release line, for example:npm install marked@0.3.9

Details

Affected versions of marked are vulnerable to a regular expression denial of service.

The amplification in this vulnerability is significant, with 1,000 characters resulting in the event loop being blocked for around 6 seconds.

Recommendation

Update to version 0.3.9 or later.

Is GHSA-x5pg-88wf-qq4p 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 marked, and gives you the command that fixes it.

References

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