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.
Published: 2026-05-13
Score: 5.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Thu, 14 May 2026 19:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 14 May 2026 15:30:00 +0000

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

Wed, 13 May 2026 20:45:00 +0000

Type Values Removed Values Added
First Time appeared Patriksimek
Patriksimek vm2
Vendors & Products Patriksimek
Patriksimek vm2

Wed, 13 May 2026 18:00:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-05-14T18:23:31.281Z

Reserved: 2026-05-04T21:24:36.505Z

Link: CVE-2026-44002

cve-icon Vulnrichment

Updated: 2026-05-14T18:23:28.004Z

cve-icon NVD

Status : Analyzed

Published: 2026-05-13T18:16:16.857

Modified: 2026-05-14T15:23:29.507

Link: CVE-2026-44002

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-13T20:30:03Z

Weaknesses