Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-1665— Command Injection in nvm via NVM_AUTH_HEADER in wget code path

Quick assessment

Affected
nvm-sh nvm
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Node Version Manager是nvm.sh开源的一个节点版本管理器。 Node Version Manager 0.40.3及之前版本存在安全漏洞,该漏洞源于nvm_download函数使用eval执行wget命令且NVM_AUTH_HEADER环境变量未清理,可能导致命令注入。

AI Predicted 6.5 Difficulty: Hard EPSS 0.79% · P56
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-1665

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Command Injection in nvm via NVM_AUTH_HEADER in wget code path
Source: CVE Program / CVE List V5
Vulnerability 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'.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
OS命令中使用的特殊元素转义处理不恰当(OS命令注入)
Source: CVE Program / CVE List V5
Vulnerability Title
Node Version Manager 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Node Version Manager是nvm.sh开源的一个节点版本管理器。 Node Version Manager 0.40.3及之前版本存在安全漏洞,该漏洞源于nvm_download函数使用eval执行wget命令且NVM_AUTH_HEADER环境变量未清理,可能导致命令注入。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
nvm-sh nvm 0.40.0 ~ 0.40.3 -

II. Public POCs for CVE-2026-1665

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-1665

请登录查看更多情报信息。

Other References for CVE-2026-1665 (1)

IV. Related Vulnerabilities