{"api_version":"1","generated_at":"2026-07-23T20:59:02+00:00","cve":"CVE-2022-21191","urls":{"html":"https://cve.report/CVE-2022-21191","api":"https://cve.report/api/cve/CVE-2022-21191.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-21191","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-21191"},"summary":{"title":"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.","state":"PUBLIC","assigner":"report@snyk.io","published_at":"2023-01-13 05:15:00","updated_at":"2023-11-07 03:43:00"},"problem_types":["NVD-CWE-Other"],"metrics":[],"references":[{"url":"https://github.com/lorenzomigliorero/npm-node-utils/blob/b55dd81c597db657c9751332bb2242403fd3e26b/index.js%23L186","name":"https://github.com/lorenzomigliorero/npm-node-utils/blob/b55dd81c597db657c9751332bb2242403fd3e26b/index.js%23L186","refsource":"MISC","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":""},{"url":"https://security.snyk.io/vuln/SNYK-JS-GLOBALMODULESPATH-3167973","name":"https://security.snyk.io/vuln/SNYK-JS-GLOBALMODULESPATH-3167973","refsource":"MISC","tags":[],"title":"Command Injection in global-modules-path | CVE-2022-21191 | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/rosen-vladimirov/global-modules-path/releases/tag/v3.0.0","name":"https://github.com/rosen-vladimirov/global-modules-path/releases/tag/v3.0.0","refsource":"MISC","tags":[],"title":"Release v3.0.0 · rosen-vladimirov/global-modules-path · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/rosen-vladimirov/global-modules-path/commit/edbdaff077ea0cf295b1469923c06bbccad3c180","name":"https://github.com/rosen-vladimirov/global-modules-path/commit/edbdaff077ea0cf295b1469923c06bbccad3c180","refsource":"MISC","tags":[],"title":"fix: do not allow command injection · rosen-vladimirov/global-modules-path@edbdaff · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/lorenzomigliorero/npm-node-utils/blob/b55dd81c597db657c9751332bb2242403fd3e26b/index.js#L186","name":"MISC:https://github.com/lorenzomigliorero/npm-node-utils/blob/b55dd81c597db657c9751332bb2242403fd3e26b/index.js%23L186","refsource":"MITRE","tags":[],"title":"npm-node-utils/index.js at b55dd81c597db657c9751332bb2242403fd3e26b · lorenzomigliorero/npm-node-utils · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-21191","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21191","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"21191","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"global-modules-path_project","cpe5":"global-modules-path","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2022-21191","ASSIGNER":"report@snyk.io","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Command Injection","cweId":"CWE-78"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"n/a","product":{"product_data":[{"product_name":"global-modules-path","version":{"version_data":[{"version_value":"0","version_affected":"="}]}}]}}]}},"references":{"reference_data":[{"url":"https://security.snyk.io/vuln/SNYK-JS-GLOBALMODULESPATH-3167973","refsource":"MISC","name":"https://security.snyk.io/vuln/SNYK-JS-GLOBALMODULESPATH-3167973"},{"url":"https://github.com/lorenzomigliorero/npm-node-utils/blob/b55dd81c597db657c9751332bb2242403fd3e26b/index.js%23L186","refsource":"MISC","name":"https://github.com/lorenzomigliorero/npm-node-utils/blob/b55dd81c597db657c9751332bb2242403fd3e26b/index.js%23L186"},{"url":"https://github.com/rosen-vladimirov/global-modules-path/releases/tag/v3.0.0","refsource":"MISC","name":"https://github.com/rosen-vladimirov/global-modules-path/releases/tag/v3.0.0"},{"url":"https://github.com/rosen-vladimirov/global-modules-path/commit/edbdaff077ea0cf295b1469923c06bbccad3c180","refsource":"MISC","name":"https://github.com/rosen-vladimirov/global-modules-path/commit/edbdaff077ea0cf295b1469923c06bbccad3c180"}]},"credits":[{"lang":"en","value":"Johns Hopkins"}],"impact":{"cvss":[{"version":"3.1","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.4,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P"}]}},"nvd":{"publishedDate":"2023-01-13 05:15:00","lastModifiedDate":"2023-11-07 03:43:00","problem_types":["NVD-CWE-Other"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:global-modules-path_project:global-modules-path:*:*:*:*:*:*:*:*","versionEndExcluding":"3.0.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}