CVE-2022-21191 json
global-modules-path Command Injection vulnerability
published 2023-01-13 3 y ago modified 2026-06-17 4 mo ago also GHSA-vvj3-85vf-fgmw , EUVD-2023-0565
- cvss
- 7.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.5%
- EPSS 1.5% chance of exploitation in 30 days, percentile 75%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm global-modules-path 3.0.0
- n/a global-modules-path 3.0.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-21191 updated cvss 9.8
global-modules-path: Command Injection due to missing Input Sanitization
-
Red Hat Decision Manager 7 global-modules-path global-modules-path Red Hat Process Automation 7 global-modules-path global-modules-pathaffected: no fix planned “Out of support scope”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 19 mo ago
Exploit prediction
1.54% chance of exploitation in the next 30 days, higher than 75% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.4 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P |
| CNA | 3.1 | 7.4 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | global-modules-path | <3.0.0 |
3.0.0 |
Affected products
- n/a global-modules-path
Classification
References
-
github.com
/rosen-vladimirov/global-modules-path/commit/edbdaff077ea0cf295b1469923c06bbccad3c180
web, patch, third-party-advisory
-
security.snyk.io
/vuln/SNYK-JS-GLOBALMODULESPATH-3167973
web, third-party-advisory
-
github.com
/lorenzomigliorero/npm-node-utils/blob/b55dd81c597db657c9751332bb2242403fd3e26b/index.js%23L186
web, broken-link, third-party-advisory
-
github.com
/rosen-vladimirov/global-modules-path/releases/tag/v3.0.0
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-21191
advisory
-
github.com
/rosen-vladimirov/global-modules-path
package
Sources
- CVE List CVE-2022-21191
- GitHub Advisory GHSA-vvj3-85vf-fgmw
- NVD CVE-2022-21191
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.