{"id":"CVE-2026-94185","published":"2026-09-21T02:27:00Z","modified":"2026-09-21T19:40:26Z","title":"nvm alias resolution follows `..` and discloses files outside $NVM_DIR/alias","vendor":"nvm-sh","product":"nvm","tier":"tail","description":{"text":"nvm resolves a requested version or alias by treating it as a filename under $NVM_DIR/alias. Before 0.40.8, nvm_alias() concatenated the requested name onto that directory and read the result with no containment check, so a name containing a `..` component escaped the alias directory; under the default layout an alias such as `../../.npmrc` resolves to a file in the user's home directory. nvm_print_alias_file() then emits every non-comment, non-empty line of whatever was opened. A version string taken from an untrusted .nvmrc reaches this path, so a developer who runs `nvm use`, `nvm install`, or `nvm which` inside an attacker-supplied repository discloses the first non-comment line of an arbitrary file readable by that user, in the resulting \"is not yet installed\" error message. A user-supplied `nvm alias <traversing-name>` discloses every non-comment line of the target file. There is no integrity or availability impact, and no command execution on this path.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00221,"percentile":0.07514,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://github.com/nvm-sh/nvm/security/advisories/GHSA-8grh-q73j-ffrc","tags":["vendor-advisory"]}],"priority":{"score":5.4,"factors":[{"name":"EPSS percentile","points":1.5},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"nvm-sh","affectedVersions":[{"vendor":"nvm-sh","product":"nvm","versions":["<= 0.40.7"]}],"fixedVersions":[{"vendor":"nvm-sh","product":"nvm","versions":["0.40.8"]}],"solutions":{"items":["Upgrade to nvm 0.40.8 or later, which rejects any `..` path component in nvm_alias() and nvm_version_path()."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-09-21T14:45:08.529950Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-83825","exploited":false,"provenance":"source"}}