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.
{ "versions": [ { "introduced": "0" }, { "fixed": "3.0.0" } ] }
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21191.json"