All reports
Critical

global-modules-path Command Injection vulnerability

Affected versions

Affected versions
< 3.0.0
Fixed version
3.0.0
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2022-21191

Probability of exploitation in the next 30 days: 1.54%

FIRST EPSS · 2026-11-18

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.

Links