MediumGHSA-xf5p-87ch-gxw2
Marked ReDoS due to email addresses being evaluated in quadratic time
Published 5 Jun 2019 · Updated 2 Aug 2022
Affected package
markednpm
- Affected
- >=0.3.14 <0.6.2
- Fixed in
- 0.6.2
Update to the fixed version for your release line, for example:
npm install marked@0.6.2Details
Versions of marked from 0.3.14 until 0.6.2 are vulnerable to Regular Expression Denial of Service. Email addresses may be evaluated in quadratic time, allowing attackers to potentially crash the node process due to resource exhaustion.
Recommendation
Upgrade to version 0.6.2 or later.
Is GHSA-xf5p-87ch-gxw2 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.