{"affected":[{"defaultStatus":"unaffected","product":"nvm","source":"CNA: harborist","vendor":"nvm-sh","versions":[{"lessThan":"0.41.0","status":"affected","version":"0.40.5","versionType":"semver"}]}],"cveId":"CVE-2026-121750","cwes":["CWE-494","CWE-459"],"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.","epss":null,"exploits":[],"kev":null,"metrics":[{"score":2.1,"severity":"low","source":"CNA: harborist","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","version":"4.0"},{"score":3.1,"severity":"low","source":"CNA: harborist","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N","version":"3.1"},{"score":2.1,"severity":"low","source":"NVD: 7ffcee3d-2c14-4c3e-b844-86c6a321a158","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","version":"4.0"},{"score":3.1,"severity":"low","source":"NVD: 7ffcee3d-2c14-4c3e-b844-86c6a321a158","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N","version":"3.1"}],"modifiedAt":1793830674873,"publishedAt":1793827723821,"references":[{"source":"CNA: harborist","tags":["vendor-advisory"],"url":"https://github.com/nvm-sh/nvm/security/advisories/GHSA-262q-c465-prmr"},{"source":"CNA: harborist","tags":["patch"],"url":"https://github.com/nvm-sh/nvm/commit/1f99e4c20bb92c5737b92512446acf8e303b1edd"},{"source":"7ffcee3d-2c14-4c3e-b844-86c6a321a158","tags":[],"url":"https://github.com/nvm-sh/nvm/commit/1f99e4c20bb92c5737b92512446acf8e303b1edd"},{"source":"7ffcee3d-2c14-4c3e-b844-86c6a321a158","tags":[],"url":"https://github.com/nvm-sh/nvm/security/advisories/GHSA-262q-c465-prmr"}],"remediation":[{"kind":"fix","source":"CNA: harborist","text":"Upgrade to nvm 0.41.0 or later, which removes an archive that fails verification instead of caching it."},{"kind":"workaround","source":"CNA: harborist","text":"Until upgrading, after any \"Checksums do not match\" error, run `nvm cache clear` before using `nvm install --offline`."},{"kind":"fix","source":"CNA: harborist","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/nvm-sh/nvm/commit/1f99e4c20bb92c5737b92512446acf8e303b1edd"}],"revision":"44c0275cb0ae2da0e8b6446cc49354bcffdbe44883be2500983577169312706a","sources":[{"modifiedAt":1793827723821,"name":"CNA: harborist","retrievedAt":1793830357783,"url":"https://www.cve.org/CVERecord?id=CVE-2026-121750"},{"modifiedAt":1793830674873,"name":"NVD","retrievedAt":1793838299573,"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-121750"}],"ssvc":null,"status":"published","title":"nvm install --offline installs a cached tarball that previously failed checksum verification","updatedAt":1793838299573}