Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPoison CDN or cache tarball for a version
-
DeliveryVictim download fails checksum verification
-
ExploitRejected archive left in $NVM_DIR/.cache
-
ExecutionVictim runs nvm install --offline for that version
-
ImpactUnverified malicious node/npm installed and executed
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V15 - Secure Coding and Architecture Code integrity verification
|
| Exploitation Conditions | Exploitation requires ALL of the following: (1) the victim runs a vulnerable nvm version (0.40.5-0.40.8); (2) an attacker who can alter the downloaded release tarball - a poisoned CDN or cache object - but who cannot also forge the adjacent SHASUMS256.txt; (3) the checksum verification visibly fails with 'Checksums do not match' (or no checksum could be obtained, or the download is interrupted), leaving the rejected archive in $NVM_DIR/.cache; and (4) the victim then runs |
| Impact | This is a genuinely low-priority issue, and the signals agree. The vuln.today Decision label is 'monitor', the CVSS 4.0 base score is only 2.1, and no KEV listing or EPSS score is provided in the input - so there is no evidence of active exploitation or measurable exploitation probability. No public exploit or PoC reference appears in the input (only the GHSA advisory and the fix commit), so this is 'no public exploit identified at time of analysis'. The low score is driven by the heavy, attacker-uncontrolled preconditions encoded in the vector (AT:P, UI:A): an attacker must be positioned to alter the downloaded tarball (poisoned CDN or cache object) yet be unable to forge the adjacent SHASUMS256.txt, AND the victim must run |
| Exploit ScenarioDerived | An attacker who controls a CDN or cache object serving Node.js release tarballs (but not the official SHASUMS256.txt) replaces a tarball with a malicious one. The victim's |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 04, 2026
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 checksum verification had just rejected, because a failed verification leaves the rejected archive behind in $NVM_DIR/.cache and a later nvm install --offline for that same version consumes the cached file without re-checking it. The attacker must be positioned to alter the downloaded tarball (for example a poisoned CDN or cache object) but not the adjacent SHASUMS256.txt, and the victim must manually run the offline install after seeing the visible "Checksums do not match" error and before any online retry, which re-verifies and removes the file. Severity is low per the assessed vector (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H); no public exploit has been identified at time of analysis, and nvm 0.41.0 fixes the issue by only ever caching an archive whose checksum has passed.
RemediationAI
Vendor-released patch: upgrade to nvm v0.41.0, which implements the fix in commit 1f99e4c2 by downloading to an .unverified staging file, verifying the checksum there, and moving it into $NVM_DIR/.cache only on success; see the advisory at https://github.com/nvm-sh/nvm/security/advisories/GHSA-262q-c465-prmr. The vendor states that upgrading is the only complete fix, and the updated README notes that --offline does not re-verify cached archives, so anything placed in the cache by other means is trusted as-is. On unpatched hosts, the practical constraint documented in the advisory is that an online retry re-verifies and deletes the bad cached file, so avoid running nvm install --offline for a version whose install just reported "Checksums do not match" (or whose download was interrupted, or for which no checksum could be obtained) until a normal online install has re-fetched and re-verified it; the trade-off is that --offline installs are unusable in exactly the failure scenarios where they are most tempting, and cached archives from unknown sources remain trusted by design.
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
nvm is a POSIX-compliant shell function for managing multiple Node.js versions, and the flaw sits in its nvm_download_artifact helper. In the affected range the helper streams the release archive directly to its final cache path under $NVM_DIR/.cache and only compares checksums afterwards; on a mismatch it returns an error but does not delete the file, even though every other failure path in the same function removes it. That is CWE-494 (download of code without integrity check) compounded by CWE-459 (incomplete cleanup): the cache path that --offline treats as trusted is exactly the path where an unverified artifact is left sitting. The --offline code path returns any readable file at that location without hashing it, so the rejected tarball is unpacked and its node and npm are executed. The same leftover state arises when no checksum could be obtained or when a download is interrupted. The upstream fix in commit 1f99e4c2 downloads to a sibling ${TARBALL}.unverified path, verifies the checksum there, removes it on any failure, and only mvs it into the final cache name once verification succeeds; the patch also adds a unit test asserting that unverified downloads never land at the final cache name. The trigger for each individual failure mode is described in the advisory; no memory-safety or race condition is involved, since the entire mechanism is shell-level file handling.
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:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Attacker needs a network/CDN position and an attacker-uncontrolled failure-then-offline sequence (AC:H) plus victim action (UI:R); the installed node/npm give full code execution in the user context (C:H/I:H/A:H).
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.5 through 0.40.8, nvm_download_artifact downloads a release archive directly to its final path in $NVM_DIR/.cache and verifies its checksum afterwards; on a checksum mismatch it reports an error but leaves the rejected archive in place. A later nvm install --offline of the same version installs that cached file without a checksum, so an archive that was just rejected gets installed and its node and npm run. This gives code execution to a party who can alter the downloaded tarball (for example a poisoned CDN or cache object) but cannot also forge the SHASUMS256.txt beside it, if the victim runs nvm install --offline for that version after the visible "Checksums do not match" failure and before any online retry. Version 0.41.0 only puts an archive in the cache once its checksum has passed.
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
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
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 0.40.0 through 0.40.8 leaks the opt-in NVM_AUTH_HEADER mirror credential to other local users because nvm_download p
File corruption and permission weakening in Node Version Manager (nvm) 0.27.0 through 0.40.8 arise when a project `.npmr
EUVD-2026-117128
NVD
CVE.org
EPSS
GitHub
Exploit-DB