File Path Traversal Vulnerability in NVM for Node.js
CVE-2026-94185

6.7MEDIUM

Key Information:

Vendor

Nvm-sh

Status
Vendor
CVE Published:
21 September 2026

What is CVE-2026-94185?

The NVM (Node Version Manager) unintentionally allows for file path traversal attacks due to insufficient checks when resolving requested aliases against its directory structure. Specifically, before version 0.40.8, the nvm_alias() function inadequately validated user input, permitting aliases that contain traversal components (e.g., '..') to access files outside the designated alias directory. As a result, when executed in an untrusted repository, commands such as nvm use, nvm install, or nvm which can inadvertently expose sensitive contents of arbitrary files within the user's home directory, particularly in responses indicating that a requested version is not installed. This vulnerability emphasizes the necessity for proper input validation in software systems to mitigate potential disclosure of sensitive data.

Affected Version(s)

nvm 0 <= 0.40.7

nvm 0.40.8

References

CVSS V4

Score:
6.7
Severity:
MEDIUM
Confidentiality:
High
Integrity:
None
Availability:
None
Attack Vector:
Local
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

vnth4nhnt of CyStack
SecFathy
.