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-94151A weakness has been identified in Omega Solution HRM OS up t…5.3
- CVE-2026-94152A security vulnerability has been detected in Omega Solution…4.3
- CVE-2026-9416A security vulnerability has been detected in code-projects …4.3
- CVE-2026-9417A vulnerability was detected in code-projects Employee Manag…4.3
- CVE-2026-9418A flaw has been found in code-projects Employee Management S…4.3
- CVE-2026-94184A stack-based buffer overflow flaw was found in fetchmail wh…
- CVE-2026-9419A vulnerability has been found in code-projects Employee Man…4.3
- CVE-2026-9420A vulnerability was found in KLiK SocialMediaWebsite 1.0. Th…6.3
- CVE-2026-9421A vulnerability was determined in KLiK SocialMediaWebsite 1.…7.3
- CVE-2026-94210A flaw has been found in Hyve5 Leantime up to 3.9.8. Affecte…3.5
- CVE-2026-94211A vulnerability has been found in Hyve5 Leantime up to 3.9.8…2.4
- CVE-2026-94213A flaw was found in the Authorization Services component of …4.9
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
