{"id":"CVE-2026-94185","aliases":["CVE-2026-94185"],"related":[],"kind":"vulnerability","state":"published","title":"nvm alias resolution follows `..` and discloses files outside $NVM_DIR/alias","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-09-21T02:27:00.752Z","modified":"2026-09-22T19:56:19.073Z","severity":{"scorer":"harborist","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","score":6.7,"rating":"MEDIUM"},"severities":[{"scorer":"harborist","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","score":5.5,"rating":"MEDIUM"},{"scorer":"harborist","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","score":6.7,"rating":"MEDIUM"}],"cwes":["CWE-22","CWE-200"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"0.40.7","status":"affected"},{"type":"semver","version":"0.40.8","status":"unaffected"}],"vendor":"nvm-sh","product":"nvm","source":"cvelist"}],"references":[{"url":"https://github.com/nvm-sh/nvm/security/advisories/GHSA-8grh-q73j-ffrc","tags":["vendor-advisory"],"sources":["cvelist","nvd"]}],"credits":["vnth4nhnt of CyStack","SecFathy"],"assigner":"harborist","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-21T14:45:08.529Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-94185","url":"https://www.cve.org/CVERecord?id=CVE-2026-94185","licence":"CVE Terms of Use","modified":"2026-09-21T19:40:26.517Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-94185","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-94185","licence":"Public domain","modified":"2026-09-22T19:56:19.073Z"}],"updatedAt":"2026-11-25T22:59:40.306Z","epss":{"score":0.003,"percentile":0.24524,"date":"2026-12-01T12:00:22.000Z"}}