01 Record
CVE-2022-21191
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.
HighPUBLISHEDCNA: snyk
CNA base score7.4 CVSS v3.xCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P
02 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.
03 Exploitation and scoring
- Exploitation
- Assessed, none found. CISA's assessment recorded neither public exploit code nor evidence of exploitation when it was made.
- SSVC decision
- ExploitationnoneCISA recorded no public exploit code and no evidence of exploitation.
- AutomatablenoAt least one step from reconnaissance to exploitation cannot be reliably automated.
- Technical ImpacttotalSuccessful exploitation gives total control of the vulnerable component.
- EPSS probability
- 1.54% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 74.8% of scored records. A rank, not a probability.
- NVD base score
- 9.8 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVD analysis status
- Modified. NVD last modified this record on 2026-06-17.
- Red Hat severity
- Critical. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2023-01-13 05:00Z3 YR AGO
- Last updated
- 2025-04-04 14:55Z1 YR AGO
- Reserved
- 2022-02-24
- Assigning CNA
- snyk
- Record state
- PUBLISHED
- Severity
- High (CVSS 7.4)
- CNA CVSS vector
- CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P
- Weaknesses
- Data version
- 5.1
- Document digest
- 8be68d798d4bacbf7583c8134b1315abd7779dfda3ae2013595bea743d53ada1
05 Affected products
VendorProductVersionsPlatforms
06 References
- security.snyk.iohttps://security.snyk.io/vuln/SNYK-JS-GLOBALMODULESPATH-3167973
- github.comhttps://github.com/lorenzomigliorero/npm-node-utils/blob/b55dd81c597db657c9751332bb2242403fd3e26b/index.js%23L186
- github.comhttps://github.com/rosen-vladimirov/global-modules-path/releases/tag/v3.0.0
- github.comhttps://github.com/rosen-vladimirov/global-modules-path/commit/edbdaff077ea0cf295b1469923c06bbccad3c180