PT-2026-60310 · Unknown · Node Version Manager
CVSS v3.1
3.1
Low
| Vector | AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
Node Version Manager (nvm) versions 0.32.1 through 0.40.5
Description
An issue exists where
nvm ls-remote and other commands that refresh remote LTS aliases, such as nvm install --lts, parse the node.js mirror's index.tab and use the LTS codename field as an alias filename without validation. A compromised mirror or a man-in-the-middle attack can return an LTS codename containing path-traversal sequences, such as ../../../.bashrc. This allows the software to write version strings to paths outside the $NVM DIR/alias directory. In default configurations where $NVM DIR is ~/.nvm, this can result in the creation or overwriting of files in the user's home directory, including shell startup files, potentially leading to code execution in subsequent shell sessions. Exploitation requires the use of a hostile mirror via a compromised CDN, network man-in-the-middle, or a malicious configuration of the NVM NODEJS ORG MIRROR or NVM IOJS ORG MIRROR variables.Recommendations
Update to version 0.40.6.
Exploit
Fix
Path traversal
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Node Version Manager