CVE-2026-44002

vm2: Host File Path Disclosure via Stack Trace Information Leak

Published May 13, 2026 CVSS 3.1 · 5.8 Medium EPSS < 1% KEV · Not listed
Description
vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.0, vm2's CallSite wrapper class (intended as a safe wrapper for V8's native CallSite) blocks getThis() and getFunction() to prevent host object leakage, but allows getFileName() to return unsanitized host absolute paths. Any sandboxed code can extract the full directory structure, library paths, and framework versions of the host server. This vulnerability is fixed in 3.11.0.

Analysis

AI-generated

Technical impact

vm2 is an open source virtual machine sandbox for Node.js that, in versions prior to 3.11.0, allowed sandboxed code to access the host’s full absolute file system paths through its CallSite wrapper class. The wrapper blocks host object leakage for getThis() and getFunction(), but incorrectly exposes the unfiltered return value of getFileName() in stack traces, which reveals the complete directory structure, library search paths, and framework version numbers of the host server. This violates confidentiality and is identified as CWE‑209 (Information Exposure Through an Error Message).

Affected Systems

The vulnerability affects the patriksimek:vm2 product for Node.js – any installation using a version earlier than 3.11.0 is vulnerable. No specific sub‑versions are listed; the advisory notes that all releases before 3.11.0 are impacted.

Risk and Exploitability

With a CVSS score of 5.8, the vulnerability carries a moderate risk. The EPSS score is not available and the issue is not listed in the CISA KEV catalog. Attackers would need the ability to execute code within the vm2 sandbox to trigger a stack trace and obtain the host paths; however, once the information is leaked, it could aid further reconnaissance attacks. The lack of an active exploit database mitigates the immediate threat, but the information disclosure remains actionable for adversaries with sandbox access.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade vm2 to version 3.11.0 or later, which removes the unfiltered file path exposure.
  • If upgrading is not feasible, ensure that sandboxed code cannot invoke CallSite.getFileName() or that its output is sanitized before being passed to the sandbox.
  • Disable or filter stack trace logging in the host application so that absolute file paths are not transmitted to the sandbox or exposed in error messages.

Generated by OpenCVE AI on May 13, 2026 at 19:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-v27g-jcqj-v8rw vm2 is Vulnerable to Host File Path Disclosure via Stack Trace Information Leak
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Vm2 Project
Vm2 Project vm2
CPEs cpe:2.3:a:vm2_project:vm2:*:*:*:*:*:node.js:*:*
Vendors & Products Vm2 Project
Vm2 Project vm2
Type Values Removed Values Added
First Time appeared Patriksimek
Patriksimek vm2
Vendors & Products Patriksimek
Patriksimek vm2
Type Values Removed Values Added
Description vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.0, vm2's CallSite wrapper class (intended as a safe wrapper for V8's native CallSite) blocks getThis() and getFunction() to prevent host object leakage, but allows getFileName() to return unsanitized host absolute paths. Any sandboxed code can extract the full directory structure, library paths, and framework versions of the host server. This vulnerability is fixed in 3.11.0.
Title vm2: Host File Path Disclosure via Stack Trace Information Leak
Weaknesses CWE-209
References
Metrics cvssV3_1

{'score': 5.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N'}

Weaknesses
  • CWE-209

    Generation of Error Message Containing Sensitive Information

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 14, 2026, 6:23 PM
Reserved
May 4, 2026, 9:24 PM
Status
Analyzed
Published
May 13, 2026, 6:16 PM
Modified
Oct 26, 2026, 5:10 PM