{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-21191","id":"CVE-2022-21191","title":"global-modules-path Command Injection vulnerability","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.\r\r","descriptionLong":"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","published":"2023-01-13T05:00:01.119Z","updated":"2026-10-28T02:30:28.362735998Z","reserved":"2022-02-24T11:58:23.980Z","status":"Modified","rejected":false,"assigner":"snyk","metric":{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","rating":"high","source":"snyk"},"metrics":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","rating":"high","source":"snyk"},{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"snyk.io"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","rating":"high","source":"OSV"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"}],"rating":"high","products":["global-modules-path"],"affectedProducts":[{"vendor":"n/a","product":"global-modules-path","defaultStatus":null,"versions":[{"version":"0","lessThan":"3.0.0","status":"affected","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"global-modules-path","purl":"pkg:npm/global-modules-path","ranges":["<3.0.0"],"fixed":["3.0.0"],"advisory":"GHSA-vvj3-85vf-fgmw"}],"cwes":["CWE-78","CWE-77"],"aliases":["GHSA-vvj3-85vf-fgmw"],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-GLOBALMODULESPATH-3167973","tags":["x_transferred","Third Party Advisory","web"]},{"url":"https://github.com/lorenzomigliorero/npm-node-utils/blob/b55dd81c597db657c9751332bb2242403fd3e26b/index.js%23L186","tags":["x_transferred","Broken Link","Third Party Advisory","web"]},{"url":"https://github.com/rosen-vladimirov/global-modules-path/releases/tag/v3.0.0","tags":["x_transferred","Third Party Advisory","web"]},{"url":"https://github.com/rosen-vladimirov/global-modules-path/commit/edbdaff077ea0cf295b1469923c06bbccad3c180","tags":["x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21191.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21191","tags":["advisory"]},{"url":"https://github.com/rosen-vladimirov/global-modules-path","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.01535,"epssPercentile":0.75386,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-21191","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21191","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-21191","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-vvj3-85vf-fgmw","ok":true,"note":"GHSA-vvj3-85vf-fgmw"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-21191","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}