CVE-2026-1665Command Injection in nvm via NVM_AUTH_HEADER in wget code path
Updated under an hour ago ()
Does this affect you?
It affects nvm-sh nvm. Add what you run to find out whether that includes you.
No exploitation reported and no EPSS estimate yet.
Do this next
Free account, 1 product
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'.
- CVSS
- 5.4 MEDIUM (v4.0, CNA)CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- Weakness (CWE)
- CWE-78, CWE-95
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- Not loaded for this CVE
- Assigned by
- openjs
- NVD analysis
- Deferred
- Record last updated
- Jan 30, 2026
- First seen by InfoSec Signals
- Oct 9, 2026
Affected products
nvm-sh nvm nvm_sh:nvm (from the name) | from 0.40.0 through 0.40.3; 0.40.4 not affected | CNA record |
References
- https://github.com/nvm-sh/nvm/commit/44e2590cdf257faf7d885e4470be8dc66cec9506patch
- https://github.com/nvm-sh/nvm/releases/tag/v0.40.4release-notes
- https://github.com/nvm-sh/nvmproduct
- https://github.com/nvm-sh/nvm/pull/3380x-introduced
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.