CVE-2022-21191
Global-modules-path Project Global-modules-path vulnerability
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.
Affected products
Global-modules-path. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Global-modules-path Project Global-modules-path runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/rosen-vladimirov/global-modules-path/commit/edbdaff077ea0cf295b1469923c06bbccad · Patch
- github.com/lorenzomigliorero/npm-node-utils/blob/b55dd81c597db657c9751332bb2242403fd3e26b/ · Third Party Advisory
- github.com/rosen-vladimirov/global-modules-path/releases/tag/v3.0.0 · Third Party Advisory
- security.snyk.io/vuln/SNYK-JS-GLOBALMODULESPATH-3167973 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2022-21191
- github.com/advisories/GHSA-vvj3-85vf-fgmw
- nvd.nist.gov/vuln/detail/CVE-2022-21191
- cve.org/CVERecord?id=CVE-2022-21191
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.