{"id":"CVE-2026-121750","summary":"nvm install --offline installs a cached tarball that previously failed checksum verification","details":"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.","aliases":["GHSA-262q-c465-prmr"],"modified":"2026-11-12T02:30:42.067662790Z","published":"2026-11-04T21:28:43.821Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/121xxx/CVE-2026-121750.json","cna_assigner":"harborist","cwe_ids":["CWE-459","CWE-494"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/121xxx/CVE-2026-121750.json"},{"type":"ADVISORY","url":"https://github.com/nvm-sh/nvm/security/advisories/GHSA-262q-c465-prmr"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-121750"},{"type":"FIX","url":"https://github.com/nvm-sh/nvm/commit/1f99e4c20bb92c5737b92512446acf8e303b1edd"},{"type":"PACKAGE","url":"https://github.com/nvm-sh/nvm"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/nvm-sh/nvm","events":[{"introduced":"1889911f0841e669de0be5bd02c737a3f1fd20fa"},{"fixed":"4e8758a801eea9479b32a904f31093e410ddaba4"},{"fixed":"1f99e4c20bb92c5737b92512446acf8e303b1edd"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0.40.5"},{"fixed":"0.41.0"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"range":[{"fixed":"1f99e4c20bb92c5737b92512446acf8e303b1edd"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["v0.40.8","v0.40.7","v0.40.6","v0.40.5"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-121750.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}