Home / nvm-sh / nvm / CVE-2026-10796
CVE-2026-10796: is it exploited, and which versions of nvm-sh nvm are affected and fixed?
CVE-2026-10796 is an OS command injection vulnerability in nvm-sh nvm. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:38 UTC). Affected: nvm through 0.40.4 (CVE record by openjs). Fixed in 0.40.5 (NVD). Severity: High (7.5, CVSS 4.0, from openjs).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:38 UTC, CVE record November 19, 2026, 07:08 UTC and NVD November 19, 2026, 07:10 UTC.
What is CVE-2026-10796?
nvm executes commands from a malicious Node.js mirror's version strings
nvm (Node Version Manager) through 0.40.4 executes arbitrary commands from version strings supplied by the configured Node.js/io.js mirror. Commands such as `nvm install` read the available versions from the mirror's index.tab and use the selected version, without sanitization, to build download URLs and shell/awk commands. Two sinks are affected by the same untrusted input: nvm_download() built a curl/wget command string and ran it with `eval`, so a version field containing command substitution (for example $(id)) was executed by the local shell; and nvm_get_checksum() interpolated the version-derived download slug into an awk program, so a crafted version could execute arbitrary commands via awk's system(). An attacker who controls the configured mirror, supplies mirror content to a user or CI on a non-default mirror, or machine-in-the-middles a non-TLS mirror can ∴ run arbitrary commands with the privileges of the user running nvm. The default mirror (https://nodejs.org over TLS) is not affected. Fixed on master (pending the next tagged release) by passing every argument as a literal argv element instead of using eval, by passing the value to awk as data via -v instead of interpolating it into the program, and by rejecting any version outside the Node.js/io.js version grammar before it is used.
From the CVE record by openjs, last updated June 4, 2026, 18:11 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| nvm-sh | nvm | through 0.40.4 |
As the CVE record by openjs states it, last updated June 4, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| openjsf | node version manager | before 0.40.5 | application |
NVD analysis (status Analyzed), last modified July 22, 2026, 20:10 UTC.
How severe is CVE-2026-10796?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | openjs |
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H | openjs |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-10796 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: total (CISA ADP, June 4, 2026)
- EPSS
- 5.00% probability of exploitation activity in the next 30 days, percentile 92.4 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
Where are the vendor advisories and references?
- GHSA-3c52-35h2-gfmm vendor-advisory
- https://github.com/nvm-sh/nvm/commit/6d870d182cd5333647ffa16c0d7dbcd817ec27a8 patch
- https://github.com/nvm-sh/nvm/commit/90bb88748ba6c29c2cec73b18ed7057413aef308 patch
- https://github.com/nvm-sh/nvm/commit/70fb4ede6b9731d75d86451d48caa5faffbec21c patch
Who found and reported it?
- DavidCarliez reported the `nvm_download` eval sink (finder)
- `nvm_get_checksum` `awk` sink was identified during remediation via an internal audit, fixed by ljharb (analyst)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- June 3, 2026
- Published
- June 4, 2026, 17:02 UTC
- CVE record updated
- June 4, 2026, 18:11 UTC by openjs
- NVD
- Analyzed, last modified July 22, 2026, 20:10 UTC
- Last checked
- CVE list November 19, 2026, 07:08 UTC; NVD November 19, 2026, 07:10 UTC; KEV December 3, 2026, 13:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect nvm?
- Nov 4, 2026CVE-2026-121746 nvm-sh nvm: link following (a symlink lets an attacker reach other files)
- Nov 4, 2026CVE-2026-121749 nvm-sh nvm: argument injection
- Nov 4, 2026CVE-2026-121747 nvm-sh nvm: link following (a symlink lets an attacker reach other files)
- Nov 4, 2026CVE-2026-121748 nvm-sh nvm: external Control of File Name or Path
- Nov 4, 2026CVE-2026-121750 nvm-sh nvm: download of Code Without Integrity Check
- Nov 4, 2026CVE-2026-121745 nvm-sh nvm: invocation of Process Using Visible Sensitive Information
- Nov 4, 2026CVE-2026-121751 nvm-sh nvm: OS command injection
- Oct 29, 2026CVE-2026-118905 nvm-sh nvm: OS command injection
Questions about CVE-2026-10796
Is CVE-2026-10796 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:38 UTC. FIRST's EPSS gives it a 5.00% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of nvm-sh nvm are affected by CVE-2026-10796?
nvm through 0.40.4, per the CVE record by openjs. The tables above give every range the sources list.
Which version fixes CVE-2026-10796?
0.40.5, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-10796?
High (7.5, CVSS 4.0, from openjs). The severity table above shows each score with its source.
Where is the official record of CVE-2026-10796?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.