GitHub Advisoryadvisory · npm

GHSA-vvj3-85vf-fgmw global-modules-path Command Injection vulnerability

CRITICAL Published 2023-01-13 Modified 2025-04-04 Official page ↗
Aliases
CVE-2022-21191
Ecosystem
npm
Packages
global-modules-path
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-77, CWE-78
Reviewed
2023-01-13

Affected packages

• npm global-modules-path: < 3.0.0 → fixed in 3.0.0

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.

Related

Alias · CVE (1)

  • 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… vulnerability

Weakness · CWE (2)

  • CWE-77 Improper Neutralization of Special Elements used in a Command weakness
  • CWE-78 Improper Neutralization of Special Elements used in an OS Command weakness

References