Live threats

All CVEs / Global-modules-path Project

CVE-2022-21191Global-modules-path Project Global-modules-path

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
2.8%
probability of exploitation in 30 days · percentile 87
Auth required
No
Published
Jan 13, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-78, CWE-77
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Global-modules-path.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm global-modules-path < 3.0.0 3.0.0 npm install global-modules-path@3.0.0

Per OSV / GitHub Advisories (GHSA-vvj3-85vf-fgmw). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
global-modules-path_projectglobal-modules-path< 3.0.0

Official sources

References

Links published by the sources. Open them with care.