Skip to main content

nvm EUVDEUVD-2026-117128

| CVE-2026-121750 LOW
Download of Code Without Integrity Check (CWE-494)
2026-11-04 harborist
2.1
CVSS 4.0 · Vendor: harborist
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Poison CDN or cache tarball for a version
  2. Delivery
    Victim download fails checksum verification
  3. Exploit
    Rejected archive left in $NVM_DIR/.cache
  4. Execution
    Victim runs nvm install --offline for that version
  5. Impact
    Unverified 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 nvm install --offline for that exact version AFTER the failure and BEFORE any online retry, since an online retry re-verifies and deletes the cached file. Limiting factors: this demands active user interaction (manually choosing the offline install right after a failure), a specific network/supply-chain position, and a narrow timing window; a mirror that controls both tarball and checksums is explicitly out of nvm's threat model and not covered. The only complete fix stated by the vendor is upgrading to v0.41.0, which caches an archive only after its checksum passes.

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 nvm install --offline for that exact version specifically after seeing the 'Checksums do not match' failure and before any online retry. However, I note a real tension: the vendor's own 4.0 vector rates impact as only VI:L (low integrity, no confidentiality/availability), yet the advisory text plainly describes 'code execution' - the victim ends up running attacker-controlled node/npm binaries, which is full compromise of the user's execution context. That impact rating appears understated relative to the described mechanism; see my independent assessment below. Net: a real, well-described integrity/supply-chain weakness worth patching routinely, but not an emergency given the narrow and improbable trigger sequence.

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 nvm_download_artifact fetches it, detects the checksum mismatch, prints an error, but leaves the rejected archive in $NVM_DIR/.cache; if the victim then runs nvm install --offline for that same version before retrying online, the poisoned archive is installed unchecked and its node/npm binaries execute. No public exploit code is identified in the available data.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

nvm 0.40.5 <0.41.0

Affected Packages

euvd nvm fix: 0.41.0

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

Vendor (harborist) PRIMARY 2.1 LOW
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
vuln.today AI 7.5 HIGH

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

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (harborist).

CVSS VectorVendor: harborist

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.1%
Top 96% exploitable
Prevalence
High
extremely popular Node.js version manager on developer machines
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
High

Priority Score

10
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Nvm

View all
CVE-2026-10796 HIGH
7.5 Jun 04

Command injection in nvm (Node Version Manager) versions through 0.40.4 allows attackers controlling the configured Node

CVE-2026-118905 HIGH
7.1 Oct 29

OS command injection in Node Version Manager (nvm) 0.31.2 through 0.40.5 lets an attacker-influenced version string brea

CVE-2026-94185 MEDIUM
6.7 Sep 21

Information disclosure in nvm versions before 0.40.8 allows a local attacker who controls a repository to read arbitrary

CVE-2026-121747 MEDIUM
6.7 Nov 04

Information disclosure in Node Version Manager (nvm) versions 0.2.0 through 0.40.8 allows a repository or archive that s

CVE-2026-121746 MEDIUM
6.7 Nov 04

Node Version Manager (nvm) 0.40.0 through 0.40.8 writes the pinned version with `tee` into `$PWD/.nvmrc`, which follows

CVE-2026-121749 MEDIUM
4.6 Nov 04

Argument injection in Node Version Manager (nvm) 0.5.0 through 0.40.8 lets a malicious `.nvmrc` smuggle grep options and

CVE-2026-121751 LOW
2.1 Nov 04

Node Version Manager (nvm) 0.39.6 through 0.40.8 contains a command injection path in which the version column of a Node

CVE-2026-15921 LOW
2.1 Jul 15

Path traversal in nvm versions 0.32.1 through 0.40.5 allows a hostile Node.js mirror to overwrite arbitrary files in the

CVE-2026-121745 LOW
2.0 Nov 04

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

CVE-2026-121748 LOW
1.8 Nov 04

File corruption and permission weakening in Node Version Manager (nvm) 0.27.0 through 0.40.8 arise when a project `.npmr

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy