Critical vm2 Sandbox Escapes Expose Node.js Hosts to Arbitrary Code Execution
Researchers disclosed a broad set of critical flaws in the vm2 Node.js sandbox library that allow untrusted JavaScript to break isolation and execute arbitrary code on the host system. Reports describe 11 to 12 vulnerabilities affecting versions across the 3.9.6 to 3.11.1 range, with most rated CVSS 9.8 to 10.0, and impacting core protections such as built-in allowlists, object handling, prototype traversal, Promise species behavior, util.inspect, Module._load(), WebAssembly exception handling, and unsafe nesting: true configurations. One tracked issue, CVE-2026-24118, is a sandbox breakout through __lookupGetter__ in versions prior to 3.11.0, enabling host-level command execution with no privileges or user interaction.
The disclosures reinforce long-running concerns that vm2's JavaScript-only isolation model is not dependable for high-risk use cases such as multi-tenant code execution, plugin evaluation, automated grading, and serverless workloads. While some reports recommend upgrading to vm2 3.11.2 for the latest protections, others note that CVE-2026-44008 and CVE-2026-44009 remain unpatched and argue that organizations handling untrusted code should consider stronger isolation boundaries such as containers or microVMs. Successful exploitation could expose environment variables, credentials, and files, and enable full compromise of the underlying Node.js host and potential lateral movement.

Get ahead of threats like this
Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.
How this story unfolded
6 events from the most recent confirmed update back to the earliest known activity.
CVE-2026-45411 disclosed in vm2 async generator sandbox escape
A new vm2 sandbox escape vulnerability, CVE-2026-45411, was documented involving async generator delegation and V8’s native handling of thenables during abrupt completion. The issue reportedly bypasses vm2’s JavaScript exception instrumentation and Promise.then sanitization, enabling remote code execution from the sandbox.
Users advised to upgrade to vm2 3.11.2 amid latest disclosures
Following the latest disclosures, users were advised to upgrade to vm2 3.11.2 for the best available protection. One report also noted that two vulnerabilities, CVE-2026-44008 and CVE-2026-44009, remained unpatched in the parallel disclosure set, underscoring ongoing risk in vm2's isolation model.
Researchers disclose broad set of critical vm2 sandbox escape flaws
Researchers disclosed a large batch of critical vulnerabilities in vm2 affecting versions through 3.11.1, with reports citing 11 to 12 flaws that enable sandbox escape and arbitrary code execution on the host. The issues impacted core sandbox protections, object handling, allowlists, and multiple escape vectors including __lookupGetter__, inspect-related behavior, prototype traversal, and Promise species handling.
GitHub Security Advisory receives CVE-2026-24118
GitHub Security Advisories newly received CVE-2026-24118 on May 4, 2026, documenting the vm2 sandbox escape as a critical issue with CVSS 9.8. The advisory tied the flaw to sandbox breakout via __lookupGetter__ and referenced the corresponding fix.
vm2 patches CVE-2026-24118 in version 3.11.0
A critical sandbox breakout vulnerability, CVE-2026-24118, affecting vm2 versions prior to 3.11.0 was fixed in vm2 version 3.11.0. The flaw allowed attackers to escape the Node.js sandbox and execute arbitrary commands on the host system.
GitHub advisory discloses vm2 null-prototype exception sandbox escape
A GitHub security advisory disclosed a vm2 sandbox breakout affecting versions up to and including 3.11.1. The advisory said exception handling in handleException could let attackers access the host Function object and achieve host command execution, and included a proof of concept.
Related entities
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
Sources
13 references tracked. Mallory keeps watching after this page renders.
CVE-2026-45411: CVE-2026-45411: Remote Code Execution via Sandbox Escape in vm2 Async Generator Implementation | CVEReports
cvereports.com
Open sourceWarning: Full sandbox escape in NodeJS Sandbox vm2, Patch Immediately! | CCB Belgium
ccb.belgium.be
Open sourceGHSA-2CM2-M3W5-GP2F: GHSA-2CM2-M3W5-GP2F: Remote Code Execution via Transformer Bypass in vm2 | CVEReports
cvereports.com
Open sourceVM2 Node.js Library security advisory (AV26-432) - Canadian Centre for Cyber Security
cyber.gc.ca
Open sourceSandbox breakout via `neutralizeArraySpeciesBatch` · Advisory · patriksimek/vm2 · GitHub
github.com
Open sourceSandbox Breakout Through Null Proto Exception · Advisory · patriksimek/vm2 · GitHub
github.com
Open sourceSandbox Escape · Advisory · patriksimek/vm2 · GitHub
github.com
Open sourceWASM Sandbox Escape · Advisory · patriksimek/vm2 · GitHub
github.com
Open sourceSee the full picture, correlated to your attack surface.
Map indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.


