Skip to content
RedCVE

CVE-2026-94185Nvm SH Nvm path traversal

nvm-shPublished:

CVSS score

6.7

Medium

CVSS 4.0 from 7ffcee3d-2c14-4c3e-b844-86c6a321a158

Exploit probability (EPSS)

0.22%

0.22% chance of exploitation in the next 30 days, higher than 12.7% of all CVEs.

CISA KEV

Not in KEV

No confirmed exploitation reported by CISA so far.

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

Source: NVD · CNA: 7ffcee3d-2c14-4c3e-b844-86c6a321a158

How to fix it, step by step

  1. Check whether you're affected

    Find every system running nvm-sh Nvm and compare its version with the affected versions.

  2. Watch for an official fix

    No fix or advisory is listed in the official record yet. Follow the vendor's security announcements; this page updates when one is published.

Was this useful?

How it can be exploited

Attack vector
Local
Attack complexity
Low
Attack requirements
None
Privileges required
None
User interaction
Active
Confidentiality
High
Integrity
None
Availability
None

Values in red make the vulnerability easier to exploit or more damaging. 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

Affected products

Affected productsVersions
nvm-sh Nvm≤ 0.40.7

Weakness

Timeline

  1. Published:
  2. Last modified:

Frequently asked questions

Is CVE-2026-94185 being exploited?

There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.2% probability of exploitation in the next 30 days.

What is the CVSS score of CVE-2026-94185?

CVE-2026-94185 has a CVSS 4.0 base score of 6.7 (medium).

Which versions are affected?

Nvm SH Nvm (≤ 0.40.7)

Is there a patch for CVE-2026-94185?

No patch is linked in the official record yet. Watch the vendor's security advisories.

References

Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.