Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
CVE Vulnerability Details :
CVE-2026-1665
PUBLISHED
More InfoOfficial Page
Assigner-openjs
Assigner Org ID-ce714d77-add3-4f53-aff5-83d477b104bb
View Known Exploited Vulnerability (KEV) details
Published At-29 Jan, 2026 | 23:04
Updated At-30 Jan, 2026 | 18:27
Rejected At-
▼CVE Numbering Authority (CNA)
Command Injection in nvm via NVM_AUTH_HEADER in wget code path

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 Products
Vendor
nvm-sh
Product
nvm
Default Status
unaffected
Versions
Affected
  • From 0.40.0 through 0.40.3 (semver)
Unaffected
  • 0.40.4 (semver)
Problem Types
TypeCWE IDDescription
CWECWE-78CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
CWECWE-95CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
Type: CWE
CWE ID: CWE-78
Description: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Type: CWE
CWE ID: CWE-95
Description: CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
Metrics
VersionBase scoreBase severityVector
4.05.4MEDIUM
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
Version: 4.0
Base score: 5.4
Base severity: MEDIUM
Vector:
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
Metrics Other Info
Impacts
CAPEC IDDescription
CAPEC-88CAPEC-88 OS Command Injection
CAPEC-6CAPEC-6 Argument Injection
CAPEC ID: CAPEC-88
Description: CAPEC-88 OS Command Injection
CAPEC ID: CAPEC-6
Description: CAPEC-6 Argument Injection
Solutions

Upgrade to nvm version 0.40.4 or later, which sanitizes NVM_AUTH_HEADER in the wget code path using nvm_sanitize_auth_header().

Configurations

Workarounds

Exploits

Credits

finder
Jiyong Yang (sy2n0@naver.com)
Timeline
EventDate
Fix committed2026-01-09 00:00:00
v0.40.4 released2026-01-29 00:00:00
Event: Fix committed
Date: 2026-01-09 00:00:00
Event: v0.40.4 released
Date: 2026-01-29 00:00:00
Replaced By

Rejected Reason

References
HyperlinkResource
https://github.com/nvm-sh/nvm/commit/44e2590cdf257faf7d885e4470be8dc66cec9506
patch
https://github.com/nvm-sh/nvm/releases/tag/v0.40.4
release-notes
https://github.com/nvm-sh/nvm
product
https://github.com/nvm-sh/nvm/pull/3380
x_introduced
Hyperlink: https://github.com/nvm-sh/nvm/commit/44e2590cdf257faf7d885e4470be8dc66cec9506
Resource:
patch
Hyperlink: https://github.com/nvm-sh/nvm/releases/tag/v0.40.4
Resource:
release-notes
Hyperlink: https://github.com/nvm-sh/nvm
Resource:
product
Hyperlink: https://github.com/nvm-sh/nvm/pull/3380
Resource:
x_introduced
▼Authorized Data Publishers (ADP)
CISA ADP Vulnrichment
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
Details not found