Medium severity · published Jan 29, 2026
CVE-2026-1665
Command Injection in nvm via NVM_AUTH_HEADER in wget code path
5.4
CVSS
0.8%
EPSS
No
On KEV
Description
A command injection vulnerability exists in nvm (Node Version Manager) versions 0.40.3 and below. The nvm_download() function uses eval to execute wget commands, and the NVM_AUTH_HEADER environment variable was not sanitized in the wget code path (though it was sanitized in the curl code path). An attacker who can set environment variables in a victim's shell environment (e.g., via malicious CI/CD configurations, compromised dotfiles, or Docker images) can inject arbitrary shell commands that execute when the victim runs nvm commands that trigger downloads, such as 'nvm install' or 'nvm ls-remote'.
Exploitation
Is it being used?
Exploit prediction (EPSS)0.8% · higher than 56% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
NV
nvm · nvm-sh
0.40.0 through 0.40.3 · source: vendor
Affected product
NV
nvm
nvm-sh
More from nvm
7.5
CVE-2026-10796
nvm executes commands from a malicious Node.js mirror's version strings
7.0
CVE-2026-118905
nvm_ls lets an untrusted version string inject sed commands, executing arbitrary commands with GNU sed
5.5
CVE-2026-94185
nvm alias resolution follows `..` and discloses files outside $NVM_DIR/alias
3.1
CVE-2026-15921
nvm path traversal via a malicious mirror's LTS codename writes outside the alias directory