CVE-2022-21191
published high CVSS 3.1 · 7.4global-modules-path: Command Injection due to missing Input Sanitization
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | global-modules-path0 to < 3.0.0 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.4 / 10
- Severity
- high
- Provider
- snyk · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | global-modules-path | 0 to < 3.0.0 (affected · semver) | snyk · cna |
Weaknesses
2- CWE-78 Command Injection
- CWE-77 CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')
References
4- https://github.com/lorenzomigliorero/npm-node-utils/blob/b55dd81c597db657c9751332bb2242403fd3e26b/index.js%23L186
- https://github.com/rosen-vladimirov/global-modules-path/commit/edbdaff077ea0cf295b1469923c06bbccad3c180
- https://github.com/rosen-vladimirov/global-modules-path/releases/tag/v3.0.0
- https://security.snyk.io/vuln/SNYK-JS-GLOBALMODULESPATH-3167973
Provider assertions
3snyk · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- eeb10d2d1c2f029041e01e85bc010c196fca39637ac76a156ba24a508eef436c
- Ingested
- 23 Sep 2026, 07:58:10 UTC
- Source record
- Official CVE record