{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-1665","id":"CVE-2026-1665","title":"Command Injection in nvm via NVM_AUTH_HEADER in wget code path","description":"A command injection vulnerability exists in nvm (Node Version Manager) versions 0.40.3 and below. The nvm_download() function uses eval to execute wget commands, and the NVM_AUTH_HEADER environment variable was not sanitized in the wget code path (though it was sanitized in the curl code path). An attacker who can set environment variables in a victim's shell environment (e.g., via malicious CI/CD","descriptionLong":"A command injection vulnerability exists in nvm (Node Version Manager) versions 0.40.3 and below. The nvm_download() function uses eval to execute wget commands, and the NVM_AUTH_HEADER environment variable was not sanitized in the wget code path (though it was sanitized in the curl code path). An attacker who can set environment variables in a victim's shell environment (e.g., via malicious CI/CD configurations, compromised dotfiles, or Docker images) can inject arbitrary shell commands that execute when the victim runs nvm commands that trigger downloads, such as 'nvm install' or 'nvm ls-remote'.","published":"2026-01-29T23:04:05.741Z","updated":"2026-10-28T02:31:14.758822102Z","reserved":"2026-01-29T21:25:18.405Z","status":"Deferred","rejected":false,"assigner":"openjs","metric":{"version":"4.0","score":5.4,"vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"medium","source":"openjs"},"metrics":[{"version":"4.0","score":5.4,"vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"medium","source":"openjs"},{"version":"4.0","score":5.4,"vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/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","rating":"medium","source":"ce714d77-add3-4f53-aff5-83d477b104bb"},{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"unrated","source":"OSV"}],"rating":"medium","products":["nvm-sh nvm"],"affectedProducts":[{"vendor":"nvm-sh","product":"nvm","defaultStatus":"unaffected","versions":[{"lessThanOrEqual":"0.40.3","status":"affected","version":"0.40.0","versionType":"semver"},{"status":"unaffected","version":"0.40.4","versionType":"semver"}],"platforms":[]}],"packages":[],"cwes":["CWE-78","CWE-95"],"aliases":[],"references":[{"url":"https://github.com/nvm-sh/nvm/commit/44e2590cdf257faf7d885e4470be8dc66cec9506","tags":["patch","fix"]},{"url":"https://github.com/nvm-sh/nvm/releases/tag/v0.40.4","tags":["release-notes","advisory"]},{"url":"https://github.com/nvm-sh/nvm","tags":["product","package"]},{"url":"https://github.com/nvm-sh/nvm/pull/3380","tags":["x_introduced","fix"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/1xxx/CVE-2026-1665.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-1665","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00779,"epssPercentile":0.56666,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-1665","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-1665","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-1665","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-1665","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}