CVE-2026-24781
Published: 04 May 2026
Description
vm2 is an open source vm/sandbox for Node.js. Prior to version 3.11.0, VM2 suffers from a sandbox breakout vulnerability through the inspect function. This allows attackers to write code which can escape from the VM2 sandbox and execute arbitrary commands…
more
on the host system. This issue has been patched in version 3.11.0.
Mitigating Controls (NIST 800-53 r5)AI
Directly remediates the sandbox breakout vulnerability in vm2 prior to version 3.11.0 by requiring timely patching to prevent arbitrary command execution via the inspect function.
Scans for and identifies vulnerable versions of the vm2 Node.js sandbox library affected by CVE-2026-24781, enabling proactive flaw remediation.
Restricts deployment and execution of unapproved or vulnerable software such as outdated vm2 versions, mitigating risk of sandbox escape exploitation.
Security SummaryAI
CVE-2026-24781 is a sandbox breakout vulnerability in vm2, an open source virtual machine and sandbox for Node.js applications. Affecting versions prior to 3.11.0, the flaw exists in the inspect function, enabling attackers to craft code that escapes the VM2 sandbox isolation. The vulnerability carries a CVSS v3.1 base score of 9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) and is associated with CWE-94 (Code Injection) and CWE-693 (Protection Mechanism Failure).
Remote attackers require no privileges or user interaction to exploit this issue over the network with low complexity. Successful exploitation allows arbitrary command execution on the host system, potentially leading to full compromise including high-impact confidentiality, integrity, and availability violations.
The vulnerability has been patched in vm2 version 3.11.0, as detailed in the project's GitHub security advisory (GHSA-v37h-5mfm-c47c) and release notes. Multiple commits address the issue, including 8d30d93213c1898b3e035298b89a814970dd1189, bdd3d15e57bc4ec5e70365cd79f7cb0256e5f88c, and fd266d084e0a3322d0f71ba2a8dc4c96cd030228, with users advised to upgrade immediately.
Details
- CWE(s)
Affected Products
MITRE ATT&CK Enterprise TechniquesAI
Why these techniques?
Sandbox escape in vm2 enables remote code injection (CWE-94) leading to arbitrary command execution on the host. Directly maps to exploiting a public-facing Node.js application (T1190), JavaScript command interpreter abuse (T1059.007), and privilege escalation via isolation bypass (T1068).