Critical, CVSS 9.8npmAmendedPublished
global-modules-path Command Injection vulnerability
CVE-2022-21191 · GHSA-vvj3-85vf-fgmw
- Affected
- npm global-modules-path < 3.0.0
- Fixed in
- 3.0.0· Vendor fix available
- Issue
- Versions of the package global-modules-path before 3.0.0 are vulnerable to Command Injection due to missing input sanitization or other checks and sandboxes being employed to the getPath function.
Recommended action: Upgrade to 3.0.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.