All CVEs / Global-modules-path Project
CVE-2022-21191Global-modules-path Project Global-modules-path
Critical 9.8 No auth needed
Follow: this CVE · Global-modules-path Project · Global-modules-path Project Global-modules-path We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 2.8% probability of exploitation in 30 days · percentile 87
- Auth required
- No
- Published
- Jan 13, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Global-modules-path.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | global-modules-path |
< 3.0.0 |
3.0.0 |
npm install global-modules-path@3.0.0 |
Per OSV / GitHub Advisories (GHSA-vvj3-85vf-fgmw). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| global-modules-path_project | global-modules-path | < 3.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Broken Link Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Third Party Advisory
- security.snyk.io Third Party Advisory