{"schemaVersion":3,"id":"CVE-2026-15921","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"Node Version Manager (nvm) is a POSIX-compliant shell function for managing multiple node.js versions. In versions 0.32.1 through 0.40.5, `nvm ls-remote` (and other commands that refresh remote LTS aliases, such as `nvm install --lts`) parse the node.js mirror's `index.tab` and use each release's LTS codename field as an alias filename without validating it. A malicious, compromised, or man-in-the-middled mirror can return an LTS codename containing path-traversal sequences such as `../../../.bashrc`, causing nvm to write the associated version string to a path outside `$NVM_DIR/alias`. With the default layout (`$NVM_DIR` is `~/.nvm`), this can create or overwrite files in the user's home directory, including shell startup files, which can lead to code execution in a later shell session. Exploitation requires the victim to use a hostile mirror -- via a compromised mirror or CDN, a network man-in-the-middle, or a maliciously configured `NVM_NODEJS_ORG_MIRROR`/`NVM_IOJS_ORG_MIRROR` -- and to run an affected command. Version 0.40.6 validates remote LTS codenames as safe alias filenames and rejects `..` path components when writing alias files.","dates":{"published":"2026-07-15T21:16:46.936Z","modified":"2026-07-16T12:53:35.897Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":3.1,"severity":"low","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":2.1,"severity":"low","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":3.1,"severity":"low","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":2.1,"severity":"low","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":3.1,"severity":"low","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00338,"percentile":0.25762,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00338},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00338,"percentile":0.25762}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00338,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00338,"percentile":0.25762}]},"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-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"},{"id":"CWE-73","name":"External Control of File Name or Path","description":"The product allows user input to control or influence paths or file names that are used in filesystem operations.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/73.html"}],"affected":[{"vendor":"nvm-sh","product":"nvm","name":"nvm","label":"nvm","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.32.1, < 0.40.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.32.1, < 0.40.6","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/security/advisories/GHSA-4ghp-wxpw-rhpg","label":"github.com/nvm-sh/nvm/security/advisories/GHSA-4ghp-wxpw-rhpg","hostname":"github.com","tags":["Vendor Advisory"]},{"url":"https://github.com/nvm-sh/nvm/commit/9275c5badda1d9d0cdad6f34598a111033eadb42","label":"github.com/nvm-sh/nvm/commit/9275c5badda1d9d0cdad6f34598a111033eadb42","hostname":"github.com","tags":["Patch"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-07-15T21:16:46.936Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-07-16T12:53:35.897Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":12,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T05:35:03.344Z","stale":false,"partial":false}}