CVE-2026-121747Medium· 5.5▾ SunlitNode Version Manager (nvm) is a POSIX-compliant shell function for managing multiple node.js versions. In versions 0.2.0 through 0.40.8, nvm does not check whether `.nvmrc` is a symbolic link. A repository or archive that ships `.nvmrc` …
▾ 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.2.0 through 0.40.8, nvm does not check whether .nvmrc is a symbolic link. A repository or archive that ships .nvmrc as a symlink to another file (for example ../../.npmrc, or /proc/self/environ on Linux) makes a plain nvm use, nvm install, nvm which, nvm exec, nvm run, or nvm-exec read that file and print its contents in the invalid-.nvmrc message (even with --silent) or, for a one-line file, in the Found ... with version <...> message; with the README's zsh load-nvmrc or bash cdnvm hook installed, entering the directory is enough. nvm sends the content nowhere; the attacker learns it only where they can see the victim's output, such as a CI log for a contributed branch. Version 0.41.0 still follows a symlinked .nvmrc, so deliberate links to another version file keep working, but never prints its content, and accepts it only if it contains a version or the name of an existing alias; the README's bash cdnvm hook, which read .nvmrc itself, now gets the version from nvm, so users of that hook must also update their copy of it.
nvm >= 0.2.0 < 0.41.0Upgrade to nvm 0.41.0 or later.
Until upgrading, check for a symlinked .nvmrc (ls -l .nvmrc) before running nvm in an untrusted project directory, and do not run nvm in CI for untrusted branches where its output is visible to their authors.
Connected by shared product, vendor, weakness, or advisory.
CVE-2026-121746Medium· 5.5nvm use --save and nvm install --save write through a symlinked .nvmrc, overwriting any file the user can write
CVE-2026-94185Medium· 5.5nvm resolves a requested version or alias by treating it as a filename under $NVM_DIR/alias
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