CVE-2022-21191
JSON

7.4high

global-modules-path Command Injection vulnerability

Severity
7.4high CVSS:3.1 by snyk
Exploit likelihood
1.54% (higher than 75% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-vvj3-85vf-fgmw

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.

Affected

Product or packageVersionsReported by
global-modules-pathbefore 3.0.0CVE List
global-modules-path (npm)before 3.0.0GitHub Advisory Database
global-modules-path_project global-modules-pathbefore 3.0.0NVD

All scores

snyk7.4high CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P
GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-77CWE-78

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

Las versiones del paquete global-modules-path anteriores a la 3.0.0 son vulnerables a la inyección de comandos debido a la falta de sanitización de entrada u otras comprobaciones y entornos de pruebas que se emplean en la función getPath.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-21191 changed 2025-04-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-vvj3-85vf-fgmw changed 2025-04-04CC-BY-4.0
NVDCVE-2022-21191 changed 2026-06-17Public domain