CVE-2022-21191
High
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.
SeverityHigh
CVSS7.4
Exploit probability—
ProductGlobal-modules-path
PublishedJan 13, 2023
First seenJan 13, 2023
Weakness typeCWE-78OS command injection
How to fix
Update
- global-modules-path_project global-modules-path3.0.0 or later
- global-modules-path3.0.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| global-modules-path_project global-modules-path | v < 3.0.0 | 3.0.0 |
| global-modules-pathnpm | v < 3.0.0 | 3.0.0 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.