Severity by source
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
Local file read triggered when a user runs nvm in an attacker repo, so AV:L and UI:R; no auth needed (PR:N); confidentiality-only (single line can be a full credential → C:H).
Primary rating from Vendor (harborist).
CVSS VectorVendor: harborist
Lifecycle Timeline
4DescriptionCVE.org
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.
AnalysisAI
Information disclosure in nvm versions before 0.40.8 allows a local attacker who controls a repository to read arbitrary files readable by the invoking user when the developer runs nvm use, nvm install, or nvm which with a crafted .nvmrc, or when the user manually runs nvm alias with a traversing name. The path traversal in alias resolution causes nvm to print non-comment lines from the opened file in an error message; the automated .nvmrc route exposes only the first non-comment/non-empty line, while the manual nvm alias route can expose all such lines. …
Unlock full vulnerability intelligence
- Risk assessment & exploitation conditions
- Attack chain visualization
- Remediation with exact patch versions
- Threat intelligence from 22 sources
- Personal watchlist & email alerts
Free forever · No credit card required
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata
Vulnerability AssessmentAI
| Exploitation | Requires the victim to execute nvm (specifically 'nvm use', 'nvm install', or 'nvm which') inside an attacker-controlled directory containing a crafted .nvmrc whose version string embeds a '..' traversal component, OR the victim manually running 'nvm alias <traversing-name>'. … Additional conditions and limiting factors are described in the full assessment. |
| Risk Assessment | This is a genuine but moderate-severity local information-disclosure flaw, correctly scored by the vendor at CVSS 5.5 (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N). … Full risk analysis with EPSS, KEV, and SSVC signal comparison available after sign-in. |
| Exploit Scenario | Full exploit scenario with step-by-step reproduction available after sign-in. |
| Remediation | Upgrade to nvm 0.40.8 or later, which contains the vendor fix for the alias path traversal; see the advisory at https://github.com/nvm-sh/nvm/security/advisories/GHSA-8grh-q73j-ffrc. … Detailed patch versions, workarounds, and compensating controls in full report. |
Threat intelligence, references, and detailed analysis are available after sign-in.
Command injection in nvm (Node Version Manager) versions through 0.40.4 allows attackers controlling the configured Node
Path traversal in nvm versions 0.32.1 through 0.40.5 allows a hostile Node.js mirror to overwrite arbitrary files in the
Same weakness CWE-22 – Path Traversal
View allSame technique Information Disclosure
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-83825