Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessHold unprivileged account on shared host
-
ExploitPoll ps/proc during victim's nvm download
-
ExecutionRead Authorization token from downloader argv
-
ImpactReuse token against private mirror
Vulnerability Assessment
| Weakness |
CWE
|
| Exploitation Conditions | Exploitation requires ALL of: (1) the victim has NVM_AUTH_HEADER set (an opt-in, non-default feature introduced in v0.40.0); (2) the host is shared with at least one other local account - e.g. a shared dev server or multi-tenant build machine; (3) the attacker already holds an unprivileged local account on that host; and (4) the attacker observes the process arguments during the brief download window of 'nvm ls-remote', 'nvm install', or similar (via 'ps' or /proc/<pid>/cmdline on Linux, or setuid-root /bin/ps on macOS). Limiting factors: the environment variable itself is NOT exposed (/proc/<pid>/environ is owner-only) - only the argv is; on Linux, mounting /proc with hidepid= (not the default) blocks the /proc read vector; and short requests expose the argument only momentarily, requiring a polling loop. After upgrading to 0.41.0 the issue persists only when BusyBox wget is the sole downloader available - the advisory's mitigation is to install curl before using NVM_AUTH_HEADER on a shared host. |
| Impact | This is a genuinely low-priority, low-real-risk issue despite being a legitimate flaw. The signals are internally consistent: the vuln.today Decision label is 'monitor', the CVSS 4.0 base score is 2.0, and the vector (AV:L/AC:L/AT:P/PR:L/UI:N, confidentiality-only VC:L) all point to a narrowly-scoped local information-disclosure problem rather than an urgent threat. There is no CISA KEV listing and no EPSS score was provided (absence of EPSS/KEV is expected for a flaw of this profile, not a data gap to penalize). No public exploit reference appears in the input - only a vendor advisory and the patch commit - so this is 'no public exploit identified at time of analysis'; the unit test shipped in the fix commit demonstrates the corrected behavior and is not a weaponized PoC. The AT:P (attack requirement present) metric reflects that the attacker must catch the brief window while nvm is downloading, which materially limits opportunistic exploitation. The impact is bounded to disclosure of whatever an NVM_AUTH_HEADER token grants on a private Node mirror (VI:N/VA:N). Net: a valid but minor local secret-exposure issue affecting only an uncommon configuration; patch on routine cadence, not as an emergency. |
| Exploit ScenarioDerived | On a shared development or multi-tenant build server, a developer sets NVM_AUTH_HEADER to authenticate to a private Node mirror and runs 'nvm install' or 'nvm ls-remote'. A separate unprivileged local account runs a polling loop over 'ps' or /proc/<pid>/cmdline and reads the 'Authorization: ...' token from the downloader's command-line arguments during the download window, then reuses it against the private mirror. No public exploit is identified at time of analysis; a tarball download leaves the argument visible long enough for a single 'ps', while shorter requests require the polling loop. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 04, 2026
nvm 0.40.0 through 0.40.8 leaks the opt-in NVM_AUTH_HEADER mirror credential to other local users because nvm_download passes it to curl or wget as a --header "Authorization: ..." command-line argument, which is readable via ps or /proc/<pid>/cmdline while nvm ls-remote, nvm install, or similar commands run. Only hosts where the user has explicitly set NVM_AUTH_HEADER and that are shared with at least one other unprivileged local account are affected, and exploitation requires a local account plus timing the brief download window, so overall risk is low. No public exploit code was identified at time of analysis; the upstream project's advisory credits Anthropic's OSS Scanner and rates the issue as information disclosure of limited confidentiality impact.
RemediationAI
Upgrade nvm to 0.41.0 (commit 903e3493), which delivers the Authorization header to curl via --config - on stdin and to GNU Wget via a private mode-0600 temporary WGETRC file, removing it from process arguments; see the vendor advisory at https://github.com/nvm-sh/nvm/security/advisories/GHSA-h3c2-g6gc-6cgx. Because BusyBox wget reads no config file, the advisory's guidance is that on a machine shared with other local users you should install curl before using NVM_AUTH_HEADER; on Linux, mounting /proc with hidepid= also blocks the /proc/<pid>/cmdline read vector but is not the default and will change what unprivileged users can see about other processes. Where upgrading or installing curl is not immediately possible, avoid setting NVM_AUTH_HEADER on multi-tenant or shared build hosts and treat the mirror token as potentially disclosed to other local accounts, rotating it if such a host is in use.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-214 (Insertion of Sensitive Information into Process Control Block / command-line arguments): nvm is a POSIX shell function that wraps curl or wget for downloads, and prior to the fix it built a --header "Authorization: <token>" argument containing the contents of NVM_AUTH_HEADER. On Linux every user can read another process's argv through ps or /proc/<pid>/cmdline unless /proc is mounted with hidepid=, and on macOS the setuid-root /bin/ps exposes the same data; the environment itself is not leaked because /proc/<pid>/environ is owner-readable only. A tarball fetch keeps the argument visible long enough for a single ps, while short requests such as index.tab or SHASUMS256.txt require a polling loop. Commit 903e3493 changes nvm_download to feed the header to curl through --config - on stdin and to GNU Wget through a mode-0600 temporary WGETRC file that copies in the user's ~/.wgetrc and is removed on exit, so the credential no longer appears in the downloader's argv; BusyBox wget reads no config file, so when it is the only available downloader the header is still passed as an argument.
Know when Nvm gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Local-only argv read (AV:L); attacker must catch the short download window (AC:H); needs own local account (PR:L); only a mirror token leaks, so C:L and I/A:N.
Primary rating from Vendor (harborist).
CVSS VectorVendor: harborist
DescriptionCVE.org
Node Version Manager (nvm) is a POSIX-compliant shell function for managing multiple node.js versions. In versions 0.40.0 through 0.40.8, when NVM_AUTH_HEADER is set, nvm_download passes the credential to curl or wget as a --header "Authorization: ..." command-line argument. Process arguments are visible to every local user (on Linux via ps or /proc//cmdline unless /proc is mounted with hidepid=; on macOS via ps), so another unprivileged account on the same machine can read the token while nvm is downloading during nvm ls-remote, nvm install, and similar commands, and gain whatever access it grants on the private mirror. Only users who set NVM_AUTH_HEADER on a host shared with other local accounts are affected. Version 0.41.0 passes the header to curl on stdin and to GNU Wget in a private temporary config file. BusyBox wget reads no config file, so when it is the only downloader available the header is still passed as an argument.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Command injection in nvm (Node Version Manager) versions through 0.40.4 allows attackers controlling the configured Node
OS command injection in Node Version Manager (nvm) 0.31.2 through 0.40.5 lets an attacker-influenced version string brea
Information disclosure in nvm versions before 0.40.8 allows a local attacker who controls a repository to read arbitrary
Information disclosure in Node Version Manager (nvm) versions 0.2.0 through 0.40.8 allows a repository or archive that s
Node Version Manager (nvm) 0.40.0 through 0.40.8 writes the pinned version with `tee` into `$PWD/.nvmrc`, which follows
Argument injection in Node Version Manager (nvm) 0.5.0 through 0.40.8 lets a malicious `.nvmrc` smuggle grep options and
Node Version Manager (nvm) 0.39.6 through 0.40.8 contains a command injection path in which the version column of a Node
Path traversal in nvm versions 0.32.1 through 0.40.5 allows a hostile Node.js mirror to overwrite arbitrary files in the
nvm versions 0.40.5 through 0.40.8 can be made to install and execute a tampered Node.js release tarball that its own ch
File corruption and permission weakening in Node Version Manager (nvm) 0.27.0 through 0.40.8 arise when a project `.npmr
EUVD-2026-117127
NVD
CVE.org
EPSS
GitHub
Exploit-DB