Skip to main content

nvm CVE-2026-94185

| EUVDEUVD-2026-83825 MEDIUM
Path Traversal (CWE-22)
2026-09-21 harborist
6.7
CVSS 4.0 · Vendor: harborist
Share

Severity by source

Vendor (harborist) PRIMARY
6.7 MEDIUM
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
vuln.today AI
5.5 MEDIUM

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).

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
4.0 AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (harborist).

CVSS VectorVendor: harborist

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
A
Scope
X

Lifecycle Timeline

4
Metadata Corrected
Sep 21, 2026 - 03:40 vuln.today
tag: Information Disclosure added
CVSS changed
Sep 21, 2026 - 03:22 NVD
5.5 (MEDIUM) 6.7 (MEDIUM)
Analysis Generated
Sep 21, 2026 - 02:58 vuln.today
CVE Published
Sep 21, 2026 - 02:27 cve.org
MEDIUM 5.5

DescriptionCVE.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

Access
technique details hidden
Delivery
technique details hidden
Exploit
technique details hidden
Execution
technique details hidden
Impact
technique details hidden

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.

Share

CVE-2026-94185 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy