{"schemaVersion":3,"id":"CVE-2026-1665","aliases":[],"status":"published","duplicateOf":null,"title":null,"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 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'.","dates":{"published":"2026-01-29T23:04:05.741Z","modified":"2026-01-30T18:27:52.134Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.4,"severity":"medium","version":"4.0","versionLabel":"v4.0","source":"CVE.org","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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":5.4,"severity":"medium","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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":5.4,"severity":"medium","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","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0079,"percentile":0.55749,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0.045000000000000075,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00745},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00729,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00729,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00729,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00745,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00745,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00745,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00745,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00745,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00745,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00745,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00745,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00745,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.0079,"percentile":0.55749}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00745,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00745,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00745,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00745,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00745,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0079,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.0079,"percentile":0.55749}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","description":"The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-95","name":"Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')","description":"The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before using the input in a dynamic evaluation call (e.g. \"eval\").","type":"weakness","status":"Incomplete","abstraction":"Variant","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/95.html"}],"affected":[{"vendor":"nvm-sh","product":"nvm","name":"nvm","label":"nvm","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.40.0, ≤ 0.40.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.40.0, ≤ 0.40.3","eol":{"isEol":null,"eolDate":null,"matchMethod":"name_exact","cycle":null,"product":{"name":"nvm","label":"nvm","category":"app"}},"hubHref":"/vendor/nvm-sh/nvm"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/nvm-sh/nvm/commit/44e2590cdf257faf7d885e4470be8dc66cec9506","label":"github.com/nvm-sh/nvm/commit/44e2590cdf257faf7d885e4470be8dc66cec9506","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/nvm-sh/nvm/releases/tag/v0.40.4","label":"github.com/nvm-sh/nvm/releases/tag/v0.40.4","hostname":"github.com","tags":["Release Notes"]},{"url":"https://github.com/nvm-sh/nvm","label":"github.com/nvm-sh/nvm","hostname":"github.com","tags":["Product"]},{"url":"https://github.com/nvm-sh/nvm/pull/3380","label":"github.com/nvm-sh/nvm/pull/3380","hostname":"github.com","tags":["X Introduced"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-01-29T23:04:05.741Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-01-30T18:27:52.134Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":22,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T16:34:50.896Z","stale":false,"partial":false}}