CVE-2026-1665

Command Injection in nvm via NVM_AUTH_HEADER in wget code path

MEDIUM
5.4
CVSS Score
Published: January 29, 2026 at 11:04 PM UTC
Updated: June 17, 2026 at 10:16 AM UTC
1 product affected across 1 vendorNvm

Using nvm by nvm-sh?

Get instant alerts when new vulnerabilities affect nvm - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.4
Exploit prediction
EPSS 0.8%
SSVC
No known exploit

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'.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

0.40.0 ≤ v ≤ 0.40.30.40.0
Vendor states this is fixed in 0.40.4 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (4)

Product
Source: ce714d77-add3-4f53-aff5-83d477b104bb
https://github.com/nvm-sh/nvm
x_introduced
Source: ce714d77-add3-4f53-aff5-83d477b104bb
https://github.com/nvm-sh/nvm/pull/3380
Release Notes
Source: ce714d77-add3-4f53-aff5-83d477b104bb
https://github.com/nvm-sh/nvm/releases/tag/v0.40.4

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.4MEDIUMopenjs
Vector?

Quick Info

StatusDEFERRED
CWE
CWE-78CWE-95

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card