Description
vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.6, lib/bridge.js and lib/setup-sandbox.js fail to block stacked indirection through Function.prototype.call around dangerous host prototype getter and setter mutators, allowing sandbox code to sever a host intrinsic's prototype chain and reach e.constructor.constructor for arbitrary host command execution. This issue is fixed in version 3.11.6.
Published: 2026-08-17
Score: 9.8 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

vm2 is an open source virtual machine that isolates Node.js code. The vulnerability occurs when the library does not block stacked indirection through Function.prototype.call around dangerous host prototype getter and setter mutators. This flaw allows sandboxed code to sever the host intrinsic's prototype chain and reach e.constructor.constructor, which enables arbitrary host command execution.

Affected Systems

The vulnerability affects patriksimek:vm2 installations running any version earlier than 3.11.6. The problem was fixed in the 3.11.6 release; all earlier versions are vulnerable.

Risk and Exploitability

With a CVSS score of 9.8 the flaw is critical. EPSS data is unavailable and it is not listed in CISA KEV. The exploit requires sandboxed JavaScript that can manipulate function prototypes, and once triggered it grants the attacker the ability to execute arbitrary commands on the host. Immediate patching is advised to mitigate this high-risk attack surface.

Generated by OpenCVE AI on August 18, 2026 at 00:01 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade vm2 to 3.11.6 or later
  • If upgrading is not possible, avoid executing untrusted code in vm2 until the patch is applied or switch to a sandbox that does not allow prototype mutations
  • Replace vm2 with an alternative sandbox implementation that prohibits dangerous prototype access if patch delay is unavoidable.

Generated by OpenCVE AI on August 18, 2026 at 00:01 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-cfcw-xp6x-25gj vm2: Sandbox Breakout Using Dangerous Host Proto Mutators
History

Mon, 17 Aug 2026 23:30:00 +0000

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

Mon, 17 Aug 2026 21:15:00 +0000

Type Values Removed Values Added
Description vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.6, lib/bridge.js and lib/setup-sandbox.js fail to block stacked indirection through Function.prototype.call around dangerous host prototype getter and setter mutators, allowing sandbox code to sever a host intrinsic's prototype chain and reach e.constructor.constructor for arbitrary host command execution. This issue is fixed in version 3.11.6.
Title vm2: Sandbox Breakout Using Dangerous Host Proto Mutators
Weaknesses CWE-913
References
Metrics cvssV3_1

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


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-17T20:53:09.218Z

Reserved: 2026-05-19T21:18:20.404Z

Link: CVE-2026-47698

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-17T21:16:45.640

Modified: 2026-08-17T21:16:45.640

Link: CVE-2026-47698

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T00:15:03Z

Weaknesses
  • CWE-913

    Improper Control of Dynamically-Managed Code Resources