{"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-08-12T03:51:47.064473318Z","published":"2023-01-13T05:00:01.119Z","database_specific":{"cwe_ids":["CWE-78"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21191.json","cna_assigner":"snyk"},"references":[{"type":"WEB","url":"https://github.com/lorenzomigliorero/npm-node-utils/blob/b55dd81c597db657c9751332bb2242403fd3e26b/index.js%23L186"},{"type":"WEB","url":"https://github.com/rosen-vladimirov/global-modules-path/releases/tag/v3.0.0"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JS-GLOBALMODULESPATH-3167973"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21191.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21191"},{"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":{"cpe":"cpe:2.3:a:global-modules-path_project:global-modules-path:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"3.0.0"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["v2.3.1","v2.3.0","v2.2.0","v2.1.0","v2.0.0","v1.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21191.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P"}]}