CVEvulnerability

CVE-2026-1665

5.4 MEDIUM Published 2026-01-29 Modified 2026-06-17 Official page ↗
Status
Deferred
Published
2026-01-29
Last modified
2026-06-17
Assigner
ce714d77-add3-4f53-aff5-83d477b104bb
CVSS 4.0 (ce714d77-add3-4f53-aff5-83d477b104bb)
5.4 MEDIUM — 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weaknesses
CWE-78, CWE-95

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

Related

Weakness · CWE (2)

  • CWE-78 Improper Neutralization of Special Elements used in an OS Command weakness
  • CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code weakness

References