CVE-2026-121751
Last modified
CVE-2026-121751 is a low-severity vulnerability rated 3.1/10 on the CVSS scale. Node Version Manager (nvm) is a POSIX-compliant shell function for managing multiple node.js versions. In versions 0.39.6 through 0.40.8, `nvm ls-remote` (and other commands that refresh remote LTS aliases) store the version column of the mirror's `index.tab` in `$NVM_DIR/alias/lts/` without validating it, and `nvm_normalize_lts` later evaluates any suffix of an `lts/-N` value inside shell arithmetic `$((N+1))`.
Description
Node Version Manager (nvm) is a POSIX-compliant shell function for managing multiple node.js versions. In versions 0.39.6 through 0.40.8, `nvm ls-remote` (and other commands that refresh remote LTS aliases) store the version column of the mirror's `index.tab` in `$NVM_DIR/alias/lts/` without validating it, and `nvm_normalize_lts` later evaluates any suffix of an `lts/-N` value inside shell arithmetic `$((N+1))`. Under bash and zsh, arithmetic evaluation expands command substitutions in array subscripts, so a stored value such as `lts/-10*path[$(cmd)1]` runs `cmd` as the user when the alias is later resolved by purely local commands (`nvm ls`, `nvm alias`, `nvm use --lts`, `nvm which lts/`), and in every new shell when the `default` alias is `lts/*`. Exploitation requires the victim to use a hostile mirror -- via a compromised mirror or CDN, a network man-in-the-middle of an `http://` mirror, or a maliciously configured `NVM_NODEJS_ORG_MIRROR` -- and to run an affected command. The same sink is also reachable from a project `.nvmrc`, which is treated as hardening. dash is not affected. Version 0.41.0 only passes an all-digit `lts/-N` offset to arithmetic and drops `index.tab` rows whose version is not a valid version string.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| nvm-sh | nvm | >= 0.39.6, < 0.41.0 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-121751?
How severe is CVE-2026-121751?
How do I fix CVE-2026-121751?
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-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-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-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
- CVE-2026-121802@better-auth/expo before 1.7.16 allows certain account-takeo…9.1
- CVE-2026-121803Rejected reason: This CVE ID is a duplicate of CVE-2026-8033…
- CVE-2026-121816Herowatch Mini developed by About Time Technologies has a Mi…8.8
- CVE-2026-121817Herowatch Go Server developed by About Time Technologies has…7.5
Are you affected by CVE-2026-121751?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
