Open
Description
As of today (23 June 2023), running npm audit
on a project that uses npm-run-all results in the following audit report:
semver <7.5.2
Severity: moderate
semver vulnerable to Regular Expression Denial of Service - https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
fix available via `npm audit fix --force`
Will install npm-run-all@4.1.2, which is a breaking change
node_modules/semver
cross-spawn 6.0.0 - 6.0.5
Depends on vulnerable versions of semver
node_modules/cross-spawn
npm-run-all >=1.8.0
Depends on vulnerable versions of cross-spawn
Depends on vulnerable versions of read-pkg
node_modules/npm-run-all
normalize-package-data <=2.5.0
Depends on vulnerable versions of semver
node_modules/normalize-package-data
read-pkg <=5.2.0
Depends on vulnerable versions of normalize-package-data
node_modules/read-pkg
The vulnerability is arising from npm-run-all's dependency on the semver package, which is reported as being vulnerable to Regular Expression Denial of Service: GHSA-c2qf-rxjj-qqgw
Trying npm audit fix --force
does not work, at least not for me.
A fix for semver is available: https://github.com/npm/node-semver/releases/tag/v7.5.3
Please update npm-run-all's dependency tree to address this vulnerability.
Metadata
Metadata
Assignees
Labels
No labels
Activity
jamesst20 commentedon Jun 26, 2023
You may want to check https://github.com/bcomnes/npm-run-all2 which is a newer, up to date fork.
langthiennhai commentedon Jul 3, 2023
npm-run-all2 also gives the same error npm-run-all
jamesst20 commentedon Jul 4, 2023
Install only one at the time. Install npm-run-all2 and run the command without the number 2
langthiennhai commentedon Jul 4, 2023
run npm-run-all2 with no errors. But there is an audit error
npm audit report
semver <7.5.2
Severity: moderate
semver vulnerable to Regular Expression Denial of Service - GHSA-c2qf-rxjj-qqgw
No fix available
node_modules/eslint-plugin-import/node_modules/semver
node_modules/semver
eslint-plugin-import >=2.27.4
Depends on vulnerable versions of semver
node_modules/eslint-plugin-import
normalize-package-data <=2.5.0
Depends on vulnerable versions of semver
node_modules/normalize-package-data
read-pkg <=5.2.0
Depends on vulnerable versions of normalize-package-data
node_modules/read-pkg
npm-run-all2 *
Depends on vulnerable versions of read-pkg
node_modules/npm-run-all2