CVE-2026-121746
Last modified
CVE-2026-121746 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. Node Version Manager (nvm) is a POSIX-compliant shell function for managing multiple node.js versions. In versions 0.40.0 through 0.40.8, `nvm use --save` and `nvm install --save` (or `-w`) write the resolved version to `$PWD/.nvmrc` with `tee`, which follows a symbolic link.
Description
Node Version Manager (nvm) is a POSIX-compliant shell function for managing multiple node.js versions. In versions 0.40.0 through 0.40.8, `nvm use --save` and `nvm install --save` (or `-w`) write the resolved version to `$PWD/.nvmrc` with `tee`, which follows a symbolic link. A repository that commits `.nvmrc` as a symlink to a path outside itself (git recreates the link on clone) therefore makes `--save` truncate any file the user can write, such as a shell startup file or `~/.ssh/authorized_keys`, and replace its contents with the version string, or create the target of a dangling link; the link itself is left unchanged, so `git status` stays clean. The attacker does not control the content written, so this is data loss, not code execution. Version 0.41.0 refuses, with a warning, to write when `.nvmrc` in the current directory is a symlink, dangling or not, rather than writing through it or replacing it.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| nvm-sh | nvm | >= 0.40.0, < 0.41.0 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-121746?
How severe is CVE-2026-121746?
How do I fix CVE-2026-121746?
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-121733Bagisto before 2.4.5 contains a stored cross-site scripting …5.4
- CVE-2026-121734ZaneOps 1.14.0 before 1.15.2 contains an authorization bypas…6.5
- CVE-2026-121735blueprintUE self-hosted edition before 4.3.4 contains an ins…3.7
- CVE-2026-121736NocoDB 0.300.0 before 2026.08.0 contains a missing authentic…5.3
- CVE-2026-12174A security vulnerability has been detected in D-Link DCS-935…8.8
- CVE-2026-121745Node Version Manager (nvm) is a POSIX-compliant shell functi…2.5
- CVE-2026-121747Node Version Manager (nvm) is a POSIX-compliant shell functi…5.5
- CVE-2026-121748Node Version Manager (nvm) is a POSIX-compliant shell functi…3.6
- CVE-2026-121749Node Version Manager (nvm) is a POSIX-compliant shell functi…3.3
- CVE-2026-12175A vulnerability was detected in CodeAstro Student Attendance…4.7
- CVE-2026-121750Node Version Manager (nvm) is a POSIX-compliant shell functi…3.1
- CVE-2026-121751Node Version Manager (nvm) is a POSIX-compliant shell functi…3.1
Are you affected by CVE-2026-121746?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
