global-modules-path is vulnerable to Command Injection. The vulnerability exists due to the insecure usage of execSync
in index.js
, allowing an attacker to inject and execute malicious commands such as getPath("something & touch abc", "somethingElse & touch def")
.
CPE | Name | Operator | Version |
---|---|---|---|
global-modules-path | le | 2.3.1 | |
global-modules-path | le | 2.3.1 |
github.com/advisories/GHSA-vvj3-85vf-fgmw
github.com/lorenzomigliorero/npm-node-utils/blob/b55dd81c597db657c9751332bb2242403fd3e26b/index.js#L186
github.com/lorenzomigliorero/npm-node-utils/blob/b55dd81c597db657c9751332bb2242403fd3e26b/index.js%23L186
github.com/rosen-vladimirov/global-modules-path/commit/edbdaff077ea0cf295b1469923c06bbccad3c180
github.com/rosen-vladimirov/global-modules-path/pull/16
github.com/rosen-vladimirov/global-modules-path/releases/tag/v3.0.0