Sandbox escape in vm2 via inspect
CVE-2026-24781 is a critical sandbox breakout vulnerability in the vm2 Node.js sandboxing library. It affects vm2 versions prior to 3.11.0, including versions up to 3.10.3. The flaw is triggered through the inspect functionality, specifically abuse of Node.js util.inspect internals that can unwrap proxies while rendering object internals. According to the provided content, this behavior can expose raw host objects and vm2’s internal proxy handler, bypassing vm2’s proxy-based isolation model. The documented exploit path reconstructs handler classes after leaking the proxy handler, uses getPrototypeOf trap behavior to obtain BaseHandler.prototype, and then abuses exposed host-realm functions to create a cross-realm channel to host objects. This can ultimately be used to invoke primitives such as child_process.execSync and execute arbitrary commands on the host system.
Are you exposed to this one?
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
Impact, mitigation & remediation
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Mitigation
If you can’t patch tonight, do this now.
Remediation
Patch, then assume compromise.
Exploits
No public exploits tracked yet. Mallory keeps watching.
No public exploit code observed for this vulnerability.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
Recent activity
10 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
A critical vm2 sandbox escape vulnerability that abuses util.inspect internals to expose host objects and bypass proxy isolation.
A critical vm2 sandbox escape vulnerability via the inspect function that can lead to arbitrary code execution on the host.
A sandbox breakout vulnerability in vm2 for Node.js that can be triggered through the inspect function, allowing arbitrary command execution on the host system.
A critical remote code execution sandbox escape in the vm2 Node.js sandboxing library that allows attackers executing JavaScript inside a vm2 instance to break out of the sandbox and run arbitrary commands on the host OS.
The version that knows your environment.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.