MediumGHSA-hj48-42vr-x3v9CVE-2021-23343

Regular Expression Denial of Service in path-parse

Published 10 Aug 2021 · Updated 14 Jan 2025

Affected package

Affected
<1.0.7
Fixed in
1.0.7
Update to the fixed version for your release line, for example:npm install path-parse@1.0.7

Details

Affected versions of npm package path-parse are vulnerable to Regular Expression Denial of Service (ReDoS) via splitDeviceRe, splitTailRe, and splitPathRe regular expressions. ReDoS exhibits polynomial worst-case time complexity.

Is GHSA-hj48-42vr-x3v9 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 path-parse, and gives you the command that fixes it.

References

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