CVE-2022-21191
7.4high
global-modules-path Command Injection vulnerability
- Severity
- 7.4high CVSS:3.1 by snyk
- Exploit likelihood
- 1.54% (higher than 75% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-vvj3-85vf-fgmw
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| global-modules-path | before 3.0.0 | CVE List |
| global-modules-path (npm) | before 3.0.0 | GitHub Advisory Database |
| global-modules-path_project global-modules-path | before 3.0.0 | NVD |
All scores
| snyk | 7.4high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P |
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
What each source says
CVE List
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.
NVD (es)
Las versiones del paquete global-modules-path anteriores a la 3.0.0 son vulnerables a la inyección de comandos debido a la falta de sanitización de entrada u otras comprobaciones y entornos de pruebas que se emplean en la función getPath.
References
| https://security.snyk.io/vuln/SNYK-JS-GLOBALMODULESPATH-3167973 | third-party-advisory, web | |
| https://github.com/lorenzomigliorero/npm-node-utils/blob/b55dd81c597db657c9751332bb2242403fd3e26b/index.js%23L186 | broken-link, third-party-advisory, web | |
| https://github.com/rosen-vladimirov/global-modules-path/releases/tag/v3.0.0 | third-party-advisory, web | |
| https://github.com/rosen-vladimirov/global-modules-path/commit/edbdaff077ea0cf295b1469923c06bbccad3c180 | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-21191 | advisory | |
| https://github.com/rosen-vladimirov/global-modules-path | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-21191 changed 2025-04-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vvj3-85vf-fgmw changed 2025-04-04 | CC-BY-4.0 |
| NVD | CVE-2022-21191 changed 2026-06-17 | Public domain |