global-modules-path@2.0.0 vulnerabilities

Returns path to globally installed package

Direct Vulnerabilities

Known vulnerabilities in the global-modules-path package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Command Injection

Affected versions of this package are vulnerable to Command Injection due to missing input sanitization or other checks and sandboxes being employed to the getPath function.

How to fix Command Injection?

Upgrade global-modules-path to version 3.0.0 or higher.

<3.0.0