CVE-2026-121748
Last modified
CVE-2026-121748 is a low-severity vulnerability rated 3.6/10 on the CVSS scale. Node Version Manager (nvm) is a POSIX-compliant shell function for managing multiple node.js versions. In versions 0.27.0 through 0.40.8, when a project's `.npmrc` sets `prefix`, `nvm use` tells the user to run `nvm use --delete-prefix`, which runs `npm config delete prefix` and `npm config delete globalconfig` in the current directory without naming a config file.
Description
Node Version Manager (nvm) is a POSIX-compliant shell function for managing multiple node.js versions. In versions 0.27.0 through 0.40.8, when a project's `.npmrc` sets `prefix`, `nvm use` tells the user to run `nvm use --delete-prefix`, which runs `npm config delete prefix` and `npm config delete globalconfig` in the current directory without naming a config file. npm loads the project `.npmrc` before deciding which file to edit, so that file chooses the target: `userconfig=~/.bashrc` makes npm rewrite `~/.bashrc` as ini (corrupting it), and `location=global` with `globalconfig=` leaves the chosen file at mode 0666, which on a shared machine lets another local user write to it. The attacker (the author of a cloned repository or archive, or a local user who can write a shared parent directory) chooses the file but not the bytes written, and no project code runs. Version 0.41.0 no longer lets a project `.npmrc` select which config file `--delete-prefix` edits.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| nvm-sh | nvm | >= 0.27.0, < 0.41.0 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-121748?
How severe is CVE-2026-121748?
How do I fix CVE-2026-121748?
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-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-121746Node Version Manager (nvm) is a POSIX-compliant shell functi…5.5
- CVE-2026-121747Node Version Manager (nvm) is a POSIX-compliant shell functi…5.5
- 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
- CVE-2026-12176A vulnerability has been found in SourceCodester CET Automat…4.3
- CVE-2026-1218A vulnerability was detected in Bjskzy Zhiyou ERP up to 11.0…6.3
Are you affected by CVE-2026-121748?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
