{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-94185","id":"CVE-2026-94185","title":"nvm alias resolution follows `..` and discloses files outside $NVM_DIR/alias","description":"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_prin","descriptionLong":"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.","published":"2026-09-21T02:27:00.752Z","updated":"2026-10-28T02:30:42.996040309Z","reserved":"2026-09-21T02:14:56.481Z","status":"Awaiting Analysis","rejected":false,"assigner":"harborist","metric":{"version":"4.0","score":6.7,"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","rating":"medium","source":"harborist"},"metrics":[{"version":"4.0","score":6.7,"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","rating":"medium","source":"harborist"},{"version":"4.0","score":6.7,"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/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":"7ffcee3d-2c14-4c3e-b844-86c6a321a158"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","rating":"medium","source":"harborist"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","rating":"medium","source":"7ffcee3d-2c14-4c3e-b844-86c6a321a158"}],"rating":"medium","products":["nvm-sh nvm"],"affectedProducts":[{"vendor":"nvm-sh","product":"nvm","defaultStatus":"unaffected","versions":[{"status":"affected","version":"0","lessThanOrEqual":"0.40.7","versionType":"semver"},{"status":"unaffected","version":"0.40.8","versionType":"semver"}],"platforms":[]}],"packages":[],"cwes":["CWE-22","CWE-200"],"aliases":["GHSA-8grh-q73j-ffrc"],"references":[{"url":"https://github.com/nvm-sh/nvm/security/advisories/GHSA-8grh-q73j-ffrc","tags":["vendor-advisory","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/94xxx/CVE-2026-94185.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-94185","tags":["advisory"]},{"url":"https://github.com/nvm-sh/nvm","tags":["package"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00221,"epssPercentile":0.12844,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-94185","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-94185","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-94185","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-94185","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}