CVE-2026-121746Medium· 5.5▾ SunlitNode 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` wit…
▾ Sunlit zone — Low / medium · no exploitation signal
impact 30.3 · likelihood 0 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
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.
nvm >= 0.40.0 < 0.41.0Upgrade to nvm 0.41.0 or later.
Until upgrading, check that .nvmrc is not a symlink (ls -l .nvmrc) before running nvm use --save or nvm install --save in an untrusted project directory.
Connected by shared product, vendor, weakness, or advisory.
CVE-2026-121747Medium· 5.5nvm prints the contents of any readable file through a symlinked .nvmrc
CVE-2026-121749Low· 3.3nvm passes the version pattern to grep without -e, letting a .nvmrc inject grep options and read local files
CVE-2026-121748Low· 3.6nvm use --delete-prefix lets a project .npmrc choose which file npm rewrites or makes world-writable
CVE-2026-121750Low· 3.1nvm install --offline installs a cached tarball that previously failed checksum verification
CVE-2026-121745Low· 2.5nvm exposes NVM_AUTH_HEADER to other local users on the curl/wget command line
CVE-2026-121751Low· 3.1nvm evaluates a malicious mirror's index.tab version strings as shell arithmetic via stored LTS aliases