{"id":"CVE-2022-21191","aliases":["CVE-2022-21191","GHSA-vvj3-85vf-fgmw"],"related":[],"kind":"vulnerability","state":"published","title":"global-modules-path Command Injection vulnerability","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Las versiones del paquete global-modules-path anteriores a la 3.0.0 son vulnerables a la inyección de comandos debido a la falta de sanitización de entrada u otras comprobaciones y entornos de pruebas que se emplean en la función getPath.","source":"nvd"}],"published":"2023-01-13T05:00:01.119Z","modified":"2026-06-17T04:25:42.830Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","score":7.4,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","score":7.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-77","CWE-78"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"3.0.0","status":"affected"}],"product":"global-modules-path","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.0.0"}],"ecosystem":"npm","package":"global-modules-path","purl":"pkg:npm/global-modules-path","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.0.0"}],"vendor":"global-modules-path_project","product":"global-modules-path","cpe":"cpe:2.3:a:global-modules-path_project:global-modules-path:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-GLOBALMODULESPATH-3167973","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/lorenzomigliorero/npm-node-utils/blob/b55dd81c597db657c9751332bb2242403fd3e26b/index.js%23L186","tags":["broken-link","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rosen-vladimirov/global-modules-path/releases/tag/v3.0.0","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rosen-vladimirov/global-modules-path/commit/edbdaff077ea0cf295b1469923c06bbccad3c180","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21191","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/rosen-vladimirov/global-modules-path","tags":["package"],"sources":["ghsa"]}],"credits":["Johns Hopkins"],"assigner":"snyk","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-04-04T14:54:56.981Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-21191","url":"https://www.cve.org/CVERecord?id=CVE-2022-21191","licence":"CVE Terms of Use","modified":"2025-04-04T14:55:31.631Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vvj3-85vf-fgmw","url":"https://github.com/advisories/GHSA-vvj3-85vf-fgmw","licence":"CC-BY-4.0","modified":"2025-04-04T19:33:44.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-21191","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21191","licence":"Public domain","modified":"2026-06-17T04:25:42.830Z"}],"updatedAt":"2026-11-25T22:58:18.192Z","epss":{"score":0.01535,"percentile":0.75581,"date":"2026-12-01T12:00:22.000Z"}}