Skip to main content
VulnerabilityPublished

CVE-2026-121746: nvm · Link Following

Affects nvmSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 6.7 Medium : upgrade to 0.41.0 when convenient.

Data as of 4 Nov 2026, 21:55 UTC

CVSS 4.0 base score
6.7Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (harborist)CVSS 4.06.7
CNA (harborist)CVSS 3.15.5
Patch
Available – fixed in 0.41.0
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 4 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 4 Nov 2026.

What to do

Upgrade nvm to 0.41.0.

Affected software

ProductAffectedFixed in
nvm-shnvmAffected
  • >=0.40.0 <0.41.0
Fixed in
  • 0.41.0
GitHubnvmpkg:github/nvmOther threatsAffected
  • >=0.40.0 <0.41.0
Fixed in
  • 0.41.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade to nvm version 0.41.0 or later, which includes an official fix that prevents writing to .nvmrc if it is a symbolic link, thereby mitigating the vulnerability. No additional action is required if this version is used.

Description

Node Version Manager (nvm) versions 0.40.0 through 0.40.8 contain a vulnerability where the commands 'nvm use --save' and 'nvm install --save' write the resolved Node.js version string to a .nvmrc file in the current directory using 'tee', which follows symbolic links. If the .nvmrc file is a symlink to a file outside the repository, this can cause unintended truncation and overwriting of arbitrary writable files, such as shell startup files or SSH authorized_keys, resulting in data loss. Version 0.41.0 fixes this by refusing to write to .nvmrc if it is a symlink, issuing a warning instead.

References

Community reviews

Loading reviews…