{"id":"CVE-2022-21191","details":"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.\r\r","aliases":["GHSA-vvj3-85vf-fgmw"],"modified":"2026-03-15T14:46:03.984664Z","published":"2023-01-13T05:15:19.150Z","references":[{"type":"ADVISORY","url":"https://github.com/lorenzomigliorero/npm-node-utils/blob/b55dd81c597db657c9751332bb2242403fd3e26b/index.js%23L186"},{"type":"ADVISORY","url":"https://github.com/rosen-vladimirov/global-modules-path/releases/tag/v3.0.0"},{"type":"ADVISORY","url":"https://security.snyk.io/vuln/SNYK-JS-GLOBALMODULESPATH-3167973"},{"type":"FIX","url":"https://github.com/rosen-vladimirov/global-modules-path/commit/edbdaff077ea0cf295b1469923c06bbccad3c180"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/rosen-vladimirov/global-modules-path","events":[{"introduced":"0"},{"fixed":"14ebe026feb5e3f22713c000be03537dc0a55613"},{"fixed":"edbdaff077ea0cf295b1469923c06bbccad3c180"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"3.0.0"}]}}],"versions":["v1.0.0","v2.0.0","v2.1.0","v2.2.0","v2.3.0","v2.3.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21191.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}