CVE-2026-1665: nvm · OS Command Injection
Affects nvmSource CVE Database V5
Not known to be exploited · CVSS 5.4 Medium.
Data as of 26 Oct 2026, 17:16 UTC
- EPSS
- 0.7% chance of exploitation in 30 days – higher than 55% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 29 Jan 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| nvm-shnvm | Affected
| Fixed in– |
GitHubnvm-sh/nvmpkg:github/nvm-sh/nvmOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate this vulnerability, European organizations should: 1) Immediately audit and sanitize environment variables, especially NVM_AUTH_HEADER, in all developer and CI/CD environments to prevent injection of malicious content. 2) Avoid using nvm versions 0.40.3 and below; upgrade to the latest patched version once available. 3) Restrict permissions and access to CI/CD configurations, dotfiles, and Docker images to trusted personnel only. 4) Implement strict validation and sanitization of environment variables in build and deployment pipelines. 5) Use container image scanning tools to detect malicious environment variable settings or injected commands. 6) Educate developers and DevOps teams about the risks of environment variable injection and the dangers of using eval with unsanitized input. 7) Monitor logs and system behavior for unusual command execution patterns during nvm operations. 8) Consider isolating build environments to limit the impact of potential compromise. These steps go beyond generic advice by focusing on environment variable hygiene, access control, and pipeline security specific to the nature of this vulnerability.
Description
CVE-2026-1665 is a command injection vulnerability in nvm (Node Version Manager) versions 0.40.3 and below. The vulnerability arises because the nvm_download() function uses eval to execute wget commands without properly sanitizing the NVM_AUTH_HEADER environment variable. An attacker who can control environment variables in a victim’s shell environment—such as through malicious CI/CD configurations, compromised dotfiles, or Docker images—can inject arbitrary shell commands. These commands execute when the victim runs nvm commands that trigger downloads, like 'nvm install' or 'nvm ls-remote'. The CVSS 4.0 score is 5.4 (medium severity), reflecting the need for local privileges and user interaction. There are no known exploits in the wild yet.