Description
vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.2, the new method neutralizeArraySpeciesBatch works with objects from the other side but can call into this side via getter on the array prototype exposing objects of the wrong side into the sandbox. This can be used to get host objects and get the host Function object. This allows attackers to write code which can escape from the VM2 sandbox and execute arbitrary commands on the host system. This vulnerability is fixed in 3.11.2.
Published: 2026-05-13
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

vm2 is an open‑source sandbox library for Node.js. Prior to version 3.11.2 its neutralizeArraySpeciesBatch method can intercept objects from the host environment through array prototype getters and re‑introduce them into the sandbox. This defect allows code that runs inside the sandbox to acquire host Function objects and other host‑side objects, thereby escaping the isolated environment and executing arbitrary commands on the host. The vulnerability is represented by CWE‑1100 and CWE‑668 and results in a complete compromise of the Node.js process.

Affected Systems

The patriksimek:vm2 package is vulnerable when any installation older than 3.11.2 is used. All released versions before 3.11.2 contain the susceptible neutralizeArraySpeciesBatch implementation and therefore are affected.

Risk and Exploitability

The CVSS score of 9.8 signals a critical level of risk. The EPSS score of < 1 % indicates that, as of the time of this analysis, exploitation is unlikely to be widespread, and the vulnerability is not listed in the CISA KEV catalog. Nonetheless, the flaw permits a sandbox‑escaping attack if an attacker can first execute code inside the vm2 runtime. The attack vector is inferred from the description as requiring sandbox code execution; the data does not provide an explicit vector, so the scenario is deduced.

Generated by OpenCVE AI on August 14, 2026 at 03:27 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade vm2 to version 3.11.2 or later, which removes the vulnerable implementation of neutralizeArraySpeciesBatch.
  • If an upgrade is not immediately possible, audit the code for usages of neutralizeArraySpeciesBatch and eliminate or replace them to prevent exposure of host objects to the sandbox.
  • Run the Node.js process in a least‑privilege sandbox or container to limit the damage potential should an escape occur.

Generated by OpenCVE AI on August 14, 2026 at 03:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-9qj6-qjgg-37qq vm2 has sandbox breakout via `neutralizeArraySpeciesBatch`
History

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

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, '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:15: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.2, the new method neutralizeArraySpeciesBatch works with objects from the other side but can call into this side via getter on the array prototype exposing objects of the wrong side into the sandbox. This can be used to get host objects and get the host Function object. This allows attackers to write code which can escape from the VM2 sandbox and execute arbitrary commands on the host system. This vulnerability is fixed in 3.11.2.
Title vm2: Snabox breakout via `neutralizeArraySpeciesBatch`
Weaknesses CWE-668
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-06T12:08:57.867Z

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

Link: CVE-2026-44008

cve-icon Vulnrichment

Updated: 2026-08-06T12:08:57.867Z

cve-icon NVD

Status : Modified

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

Modified: 2026-08-06T13:18:15.807

Link: CVE-2026-44008

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-14T03:30:03Z

Weaknesses
  • CWE-1100

    Insufficient Isolation of System-Dependent Functions

  • CWE-668

    Exposure of Resource to Wrong Sphere