PT-2026-5371
CVE-2026-1665
·
Published
2024-06-21
·
Updated
2026-01-30
Description by
CVSS 2.0
6.8
MediumMetricsAV:L/AC:L/Au:S/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions
nvm versions 0.40.3 and below
Description
A command injection issue exists in nvm (Node Version Manager). The
nvm download() function utilizes eval to execute wget commands. The NVM AUTH HEADER environment variable was not properly sanitized when used in the wget code path. An attacker capable of setting environment variables within a victim’s shell environment—for example, through malicious CI/CD configurations, compromised dotfiles, or Docker images—can inject arbitrary shell commands. These commands will execute when the victim runs nvm commands that initiate downloads, such as 'nvm install' or 'nvm ls-remote'.Recommendations
Update nvm to a version newer than 0.40.3.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾