Advisory

GHSA-vvj3-85vf-fgmw

Also known as: CVE-2022-21191

Summary

global-modules-path Command Injection vulnerability

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2023-01-13 06:30 UTC
Modified
2025-04-04 19:33 UTC

Affected packages and fixes

global-modules-path

npm · All systems

Affected

  • introduced 0, fixed 3.0.0 (semver)

Fixed versions

3.0.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences