High severity7.4OSV Advisory· Published Jan 13, 2023· Updated Jun 17, 2026
CVE-2022-21191
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
global-modules-pathnpm | < 3.0.0 | 3.0.0 |
Affected products
3- Range: v1.0.0, v2.0.0, v2.1.0, …
- cpe:2.3:a:global-modules-path_project:global-modules-path:*:*:*:*:*:*:*:*Range: <3.0.0
Patches
Vulnerability mechanics
References
6- github.com/rosen-vladimirov/global-modules-path/commit/edbdaff077ea0cf295b1469923c06bbccad3c180nvdPatchThird Party AdvisoryWEB
- github.com/advisories/GHSA-vvj3-85vf-fgmwghsaADVISORY
- github.com/lorenzomigliorero/npm-node-utils/blob/b55dd81c597db657c9751332bb2242403fd3e26b/index.js%23L186nvdBroken LinkThird Party AdvisoryWEB
- github.com/rosen-vladimirov/global-modules-path/releases/tag/v3.0.0nvdThird Party AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2022-21191ghsaADVISORY
- security.snyk.io/vuln/SNYK-JS-GLOBALMODULESPATH-3167973nvdThird Party AdvisoryWEB
News mentions
0No linked articles in our index yet.