nvm 0.40.8 Blocks Malicious .nvmrc Path Traversal

P2 — VALIDATE AND UPDATEMedium · 5.5 (CVSS v3.1)EXPLOITATION: NOT STATED

Quick Answer

The nvm project published GHSA-8grh-q73j-ffrc for CVE-2026-94185. A malicious .nvmrc path could make nvm read outside its alias directory and disclose local files. Versions through 0.40.7 are affected; nvm 0.40.8 rejects the traversal.

Find Workflows That Automatically Trust .nvmrc Files

What to do now: Locate developer, CI, build, and shell-hook workflows that run nvm commands on repository-controlled .nvmrc files. Update to 0.40.8 or later, verify the active nvm installation, and review exposure of sensitive local files.

Open the authoritative advisory

Last verified: 2026-09-21 UTC. Recheck the current authoritative advisory and entitled repository before changing production.

Scope And Authority

Product scopenvm releases through 0.40.7
AdvisoryGHSA-8grh-q73j-ffrc
CVECVE-2026-94185
Authoritative release date2026-09-21 02:26:30 UTC; nvm 0.40.8 was released at 02:26:02 UTC
Authority revision date2026-09-21 02:26:30 UTC
Affected versionsnvm versions through 0.40.7
Fixed version0.40.8
CVSS base score5.5 (CVSS v3.1)
CVSS severityMedium
Exploitation statusNot stated by the nvm project; no exploitation claim is inferred.

What Changed

The project states that crafted path traversal in an .nvmrc file can reach files outside $NVM_DIR/alias. The official CVSS vector requires local access and user interaction and rates confidentiality impact High; the advisory does not claim command execution or exploitation in the wild.

What To Validate Now

  1. Inventory. Locate nvm installations in developer workstations, administrative hosts, CI runners, images, and shell initialization or directory-change hooks.
  2. Establish applicability. Confirm versions through 0.40.7 and whether users or automation run nvm use, nvm install, or nvm which against untrusted repositories or files.
  3. Remediate. Install nvm 0.40.8 or a supported later release through the project's documented method; rebuild managed images and CI runners where nvm is embedded.
  4. Validate. Confirm the active nvm version in every execution context, test approved .nvmrc workflows, and review whether untrusted repository content could have reached secrets before the update.
  5. Retain evidence. Preserve asset and owner identifiers, the applicability decision, before-and-after versions, change approval, installation output, validation results, and any exception or rollback record.

Operational Cautions

nvm can exist per user and in multiple images or runners, so one successful update does not prove every execution context is fixed. Treat unexpected file access as a reason to investigate, not as proof that secrets were taken, and rotate credentials only according to evidence and incident-response policy.

Evidence To Retain

  • Exact product, release stream, package or application version, enabled feature, environment, and accountable owner.
  • UTC timestamps, source advisory revision, approved change record, installer or package-manager output, and resulting version.
  • Relevant logs and monitoring evidence, test results, exceptions, compensating controls, and rollback decisions.

Related TechGeeks Resources

Authoritative References

Correction policy: If the authority changes affected versions, fixed versions, severity, exploitation information, mitigations, or required action, TechGeeks will update this notice and its verification date.