CVE-2022-21191
global-modules-path Command Injection vulnerability
9.8
CRITICAL
CVSS 3.1
EPSS 0.65%
Description
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.
How to fix CVE-2022-21191
To remediate CVE-2022-21191, upgrade the affected package to a fixed version below.
- npm/global-modules-path—upgrade to 3.0.0 or later
Is CVE-2022-21191 being exploited?
Low — EPSS is 0.7%, meaning exploitation activity has not been observed at scale.
Affected packages (1)
- from 0, < 3.0.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
References (6)
- ADVISORYnvd.nist.gov/vuln/detail/CVE-2022-21191
- PATCHgithub.com/rosen-vladimirov/global-modules-path
- WEBgithub.com/lorenzomigliorero/npm-node-utils/blob/b55dd81c597db657c9751332bb2242403fd3e26b/index.js%23L186
- WEBgithub.com/rosen-vladimirov/global-modules-path/commit/edbdaff077ea0cf295b1469923c06bbccad3c180