{"id":"CVE-2022-21191","aliases":["EUVD-2023-0565","GHSA-vvj3-85vf-fgmw"],"status":"published","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.","severity":{"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","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.01545,"percentile":0.75202,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-77","CWE-78"],"published":"2023-01-13T05:00:01Z","modified":"2026-10-28T02:30:28Z","fixes":[{"ecosystem":"npm","package":"global-modules-path","fixed_in":["3.0.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"global-modules-path","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.0"}]}]},{"source":"osv","ecosystem":"npm","package":"global-modules-path","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.0.0"}]}]}],"products":[{"vendor":"global-modules-path_project","product":"global-modules-path"}],"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://nvd.nist.gov/vuln/detail/CVE-2022-21191","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-vvj3-85vf-fgmw"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21191.json","tags":["advisory"]},{"url":"https://github.com/rosen-vladimirov/global-modules-path","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2022-21191","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","status":"published","published":"2023-01-13T05:00:01.119Z","modified":"2025-04-04T14:55:31.631Z","cvss":[{"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","level":"high","assessor":"cna"}],"cwes":["CWE-78","CWE-77"],"updated_at":"2026-11-02T14:34:28.707644Z"}],"euvd":[{"id":"EUVD-2023-0565","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","status":"published","published":"2023-01-13T05:00:01Z","modified":"2025-04-04T14:55:31Z","cvss":[{"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","level":"high"}],"updated_at":"2026-11-02T20:52:42.420681Z"}],"ghsa":[{"id":"GHSA-vvj3-85vf-fgmw","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.","status":"published","published":"2023-01-13T06:30:22Z","modified":"2025-04-04T19:33:45Z","cvss":[{"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","level":"critical"}],"cwes":["CWE-77","CWE-78"],"updated_at":"2026-11-02T14:38:38.344711Z"}],"nvd":[{"id":"CVE-2022-21191","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","status":"published","published":"2023-01-13T05:15:19.15Z","modified":"2026-06-17T04:25:42.83Z","cvss":[{"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","level":"high","assessor":"secondary"},{"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","level":"critical","assessor":"primary"}],"cwes":["CWE-78","CWE-77"],"updated_at":"2026-11-02T14:07:35.157734Z"}],"osv":[{"id":"CVE-2022-21191","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","status":"published","published":"2023-01-13T05:00:01.119Z","modified":"2026-10-28T02:30:28.362735998Z","cvss":[{"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","level":"high"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T15:44:23.655778Z"},{"id":"GHSA-vvj3-85vf-fgmw","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.","status":"published","published":"2023-01-13T06:30:22Z","modified":"2025-04-04T19:33:44Z","cvss":[{"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","level":"critical"}],"cwes":["CWE-77","CWE-78"],"updated_at":"2026-11-02T15:46:57.694388Z"}]}}
