CVE-2022-21191: Versions of the package global-modules-path before 3.0.0 are vulnerable to Command Injection due to missing in
CVE-2022-21191 is a high-severity flaw (CVSS 7.4) affecting global-modules-path. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- High severity
A fixed release or distro patch exists.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2022-21191?
global-modules-path: upgrade to 3.0.0. Exact commands for each OS are on this page.
Is CVE-2022-21191 being exploited?
CVE-2022-21191 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2022-21191 affect?
CVE-2022-21191 affects global-modules-path. Severity is high (CVSS 7.4). 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.
How urgent is CVE-2022-21191?
Priority 45/100. High severity