CVE-2026-24118: Sandbox Escape via __lookupGetter__ in vm2
- Vendor
- Vm2 Project
CVE-2026-24118 is a sandbox escape vulnerability in vm2, a JavaScript sandbox library for Node.js, affecting versions before 3.11.0. Inconsistent cross-context handling involving lookupGetter, Buffer.apply, and prototype traversal allows attacker-controlled sandboxed JavaScript to reach the host Function constructor. An attempted protection can be bypassed by retrieving constructor properties through Object.getOwnPropertyDescriptor. Successful exploitation permits execution of arbitrary code and operating system commands outside the sandbox, with the privileges of the host Node.js process. Version 3.11.0 fixes the vulnerability.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Exploitation breaks vm2's isolation boundary and compromises the confidentiality, integrity, and availability of resources accessible to the Node.js application. Attackers can execute host commands, read application secrets and environment variables, access or modify files, and disrupt services. Access to internal systems may also enable lateral movement. The extent of compromise depends on the privileges, credentials, and network access available to the Node.js process; exploitation does not inherently grant root privileges.
Mitigation
If you can’t patch tonight, do this now.
Until patched, stop executing untrusted JavaScript in affected vm2 instances. No vulnerability-specific workaround is documented. Do not rely on vm2 as the sole security boundary for hostile code; use independently enforced process, container, or microVM isolation to reduce the consequences of a sandbox escape.
Remediation
Patch, then assume compromise.
Upgrade vm2 to version 3.11.0 or later, which fixes CVE-2026-24118. Audit direct and transitive dependencies to identify affected installations. Version 3.11.0 is the minimum fix for this vulnerability, not a guarantee of protection against separate vm2 vulnerabilities.
Exploits
1 exploit validated by Mallory's analysis.
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.
References
Frequently asked questions
- Is CVE-2026-24118 exploited in the wild?
- As of Nov 5, 2026, Mallory has no reports of CVE-2026-24118 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-24118?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2026-24118, the earliest disclosed May 7, 2026.
- Is there a patch for CVE-2026-24118?
- Upgrade vm2 to version 3.11.0 or later, which fixes CVE-2026-24118. Audit direct and transitive dependencies to identify affected installations.
- What products are affected by CVE-2026-24118?
- Vm2 Project Vm2.
- How severe is CVE-2026-24118?
- CVE-2026-24118 has a CVSS v3.1 score of 9.1 (Critical) and an EPSS score of 1.0% (63rd percentile) as of Nov 5, 2026.
Recent activity
18 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.