{"id":27089,"date":"2026-09-21T12:30:38","date_gmt":"2026-09-21T04:30:38","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-94185"},"modified":"2026-09-21T12:30:38","modified_gmt":"2026-09-21T04:30:38","slug":"cve-2026-94185","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-94185","title":{"rendered":"CVE-2026-94185 [MEDIUM] &#8211; nvm resolves a requested version or alias by treating it as a filename under $NVM_DIR\/alia"},"content":{"rendered":"<p>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 escaped the alias directory; under the default layout an alias such as `..\/..\/.npmrc` resolves to a file in the user&#8217;s home directory. nvm_print_alias_file() then emits every non-comment, non-empty line of whatever was opened. A version string taken from an untrusted .nvmrc reaches this path, so a developer who runs `nvm use`, `nvm install`, or `nvm which` inside an attacker-supplied repository discloses the first non-comment line of an arbitrary file readable by that user, in the resulting &#8220;is not yet installed&#8221; error message. A user-supplied `nvm alias ` discloses every non-comment line of the target file. There is no integrity or availability impact, and no command execution on this path.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 <\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-27089","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/27089","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=27089"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=27089"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=27089"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}