Skip to content
OpenAdvisories

Vendor

nvm-sh

12 known vulnerabilities.

Products

4 results · Clear filters · Feed

  • Medium 5.5

    nvm use --save and nvm install --save write through a symlinked .nvmrc, overwriting any file the user can write

    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…

  • Medium 5.5

    nvm prints the contents of any readable file through a symlinked .nvmrc

    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 anothe…

  • Medium 5.5

    nvm alias resolution follows `..` and discloses files outside $NVM_DIR/alias

    nvm resolves a requested version or alias by treating it as a filename under $NVM_DIR/alias. Before 0.40.8, nvm_alias() concatenated the requested name onto that directory and read the result with no containment check, so a name containing a `..` component es…

  • Medium 5.4

    Command Injection in nvm via NVM_AUTH_HEADER in wget code path

    A command injection vulnerability exists in nvm (Node Version Manager) versions 0.40.3 and below. The nvm_download() function uses eval to execute wget commands, and the NVM_AUTH_HEADER environment variable was not sanitized in the wget code path (though it w…