CVE-2026-94185
Last modified
CVE-2026-94185 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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. EPSS estimates a 0.29% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| nvm-sh | nvm | <= 0.40.7 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-94185?
How severe is CVE-2026-94185?
How do I fix CVE-2026-94185?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-94179Unauthenticated Cross Site Scripting (XSS) in Razorpay Payme…7.1
- CVE-2026-9418A flaw has been found in code-projects Employee Management S…4.3
- CVE-2026-94180Authorization Bypass Through User-Controlled Key vulnerabili…4.3
- CVE-2026-94181An address bar spoofing issue in affected versions of Arc co…7.4
- CVE-2026-94183Arc Search for Android before version 1.12.10 does not displ…7.4
- CVE-2026-94184A stack-based buffer overflow flaw was found in fetchmail wh…5.3
- CVE-2026-9419A vulnerability has been found in code-projects Employee Man…4.3
- CVE-2026-94192A ThreadX module allocates the control blocks of its kernel …8.5
- CVE-2026-94194Inconsistent Interpretation of HTTP Requests ('HTTP Request/…6.3
- CVE-2026-94197An authentication and authorization bypass vulnerability exi…7.5
- CVE-2026-9420A vulnerability was found in KLiK SocialMediaWebsite 1.0. Th…6.3
- CVE-2026-94200Improper Validation of Consistency within Input vulnerabilit…8.2
Are you affected by CVE-2026-94185?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
