{"id":"CVE-2026-121750","state":"PUBLISHED","title":"nvm install --offline installs a cached tarball that previously failed checksum verification","description":"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.","publishedAt":"2026-11-04T21:28:43.821Z","updatedAt":"2026-11-09T20:47:07.647Z","severity":{"score":2.1,"label":"Low","version":"4.0","vector":"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","source":"harborist"},"assigner":"harborist","products":["nvm-sh nvm"],"affected":[{"vendor":"nvm-sh","product":"nvm","defaultStatus":"unaffected","versions":[{"version":"0.40.5","status":"affected","lessThan":"0.41.0","versionType":"semver"}],"repo":"https://github.com/nvm-sh/nvm"}],"references":["https://github.com/nvm-sh/nvm/security/advisories/GHSA-262q-c465-prmr","https://github.com/nvm-sh/nvm/commit/1f99e4c20bb92c5737b92512446acf8e303b1edd"],"weaknesses":["CWE-494","CWE-459"],"ingestedAt":"2026-11-09T20:54:05.353Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/121xxx/CVE-2026-121750.json","commit":"e537bd9fb106bf0066dc78768eacbdbaa11d345e","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-121750","state":"PUBLISHED","datePublished":"2026-11-04T21:28:43.821Z","dateUpdated":"2026-11-09T20:47:07.647Z","assignerShortName":"harborist","assignerOrgId":"7ffcee3d-2c14-4c3e-b844-86c6a321a158","dateReserved":"2026-11-03T23:39:03.684Z"},"containers":{"cna":{"title":"nvm install --offline installs a cached tarball that previously failed checksum verification","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"nvm-sh","product":"nvm","defaultStatus":"unaffected","versions":[{"version":"0.40.5","status":"affected","lessThan":"0.41.0","versionType":"semver"}],"repo":"https://github.com/nvm-sh/nvm"}],"references":[{"url":"https://github.com/nvm-sh/nvm/security/advisories/GHSA-262q-c465-prmr","name":"GHSA-262q-c465-prmr","tags":["vendor-advisory"]},{"url":"https://github.com/nvm-sh/nvm/commit/1f99e4c20bb92c5737b92512446acf8e303b1edd","name":"Fix commit 1f99e4c2","tags":["patch"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"ACTIVE","vulnConfidentialityImpact":"NONE","subConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW","subIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"LOW","baseScore":2.1,"vectorString":"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"}},{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"version":"3.1","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"LOW","availabilityImpact":"NONE","baseSeverity":"LOW","baseScore":3.1,"vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-494","lang":"en","description":"CWE-494 Download of Code Without Integrity Check","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-459","lang":"en","description":"CWE-459 Incomplete Cleanup","type":"CWE"}]}],"providerMetadata":{"shortName":"harborist","orgId":"7ffcee3d-2c14-4c3e-b844-86c6a321a158","dateUpdated":"2026-11-04T21:28:43.821Z"},"workarounds":[{"lang":"en","value":"Until upgrading, after any \"Checksums do not match\" error, run `nvm cache clear` before using `nvm install --offline`.","supportingMedia":[{"type":"text/html","base64":false,"value":"<p>Until upgrading, after any \"Checksums do not match\" error, run `nvm cache clear` before using `nvm install --offline`.</p>"}]}],"solutions":[{"lang":"en","value":"Upgrade to nvm 0.41.0 or later, which removes an archive that fails verification instead of caching it.","supportingMedia":[{"type":"text/html","base64":false,"value":"<p>Upgrade to nvm 0.41.0 or later, which removes an archive that fails verification instead of caching it.</p>"}]}],"credits":[{"lang":"en","value":"Anthropic's OSS Scanner, as vulnerability ANT-2026-7NCT51FE","type":"finder"},{"lang":"en","value":"Jordan Harband (https://github.com/ljharb)","type":"remediation developer"}],"source":{"advisory":"GHSA-262q-c465-prmr","discovery":"EXTERNAL"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-09T20:46:55.193978Z","id":"CVE-2026-121750","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-09T20:47:07.647Z"}}]}}}