CVE-2026-94185: nvm - Path Traversal
- Cve: CVE-2026-94185
- Name: nvm - Path Traversal
- 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_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.
- Impact: Attackers can disclose contents of arbitrary files accessible to the user, leading to information disclosure without integrity or availability impact.
- Remediation: Update to version 0.40.8 or later.
- Vulnerability type: path_traversal
- Vulnerability impact: information_disclosure
- Requirement type: user_interaction
- Requirements: User must run nvm commands in attacker-supplied repository or supply crafted alias
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.5
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- Epss score: 0.00221
- Epss percentile: 0.12574
- Assignee: 7ffcee3d-2c14-4c3e-b844-86c6a321a158
- Published at: 2026-09-21T03:16:34Z
- Age in days: 64
- Modified at: 2026-09-22T19:56:19Z
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-94185
- Nvd status: awaiting_analysis
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/nvm-sh/nvm/security/advisories/GHSA-8grh-q73j-ffrc | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| openjsf:node_version_manager | <= 0.40.7 | no | cna_alias | /v1/products/openjsf/node_version_manager |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| nvm-sh/nvm | security_advisory | yes | /v1/repositories/nvm-sh/nvm |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts