# CVE-2022-21191: global-modules-path Command Injection vulnerability

- Severity: High 7.4 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.54%, higher than 75% of CVEs (2026-12-01)
- Published: 2023-01-13T05:00:01.119Z
- Modified: 2026-06-17T04:25:42.830Z
- Also known as: GHSA-vvj3-85vf-fgmw
- Weaknesses: CWE-77, CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- global-modules-path: before 3.0.0
- global-modules-path (npm): before 3.0.0
- global-modules-path_project global-modules-path: before 3.0.0

## Every score

- snyk: CVSS:3.1 7.4 High `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## 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

- CVE List: [CVE-2022-21191](https://www.cve.org/CVERecord?id=CVE-2022-21191), CVE Terms of Use, modified 2025-04-04
- GitHub Advisory Database: [GHSA-vvj3-85vf-fgmw](https://github.com/advisories/GHSA-vvj3-85vf-fgmw), CC-BY-4.0, modified 2025-04-04
- NVD: [CVE-2022-21191](https://nvd.nist.gov/vuln/detail/CVE-2022-21191), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-21191 · Whole record: https://cve.day/CVE-2022-21191.json · Rebuilt by cve.day 2026-11-25T22:58:18.192Z
