CVE-2026-43997: Sandbox Escape in vm2 via Host Object Exposure
- Vendor
- Vm2 Project
CVE-2026-43997 is a critical sandbox escape vulnerability in vm2, the Node.js sandbox library used to execute untrusted JavaScript. In affected versions prior to 3.11.0, sandboxed code can obtain a reference to the host Object from outside the intended isolation boundary. Once a genuine host object is exposed inside the sandbox, the attacker can leverage host-side functionality to break out of vm2’s proxy-based protections and execute code in the host context. One documented exploitation path involves calling getOwnPropertySymbols on the exposed host object to retrieve the custom inspect symbol used by Node.js internals, demonstrating access to a real host object rather than a sanitized proxy. The flaw is fixed in vm2 3.11.0.
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.
Successful exploitation breaks vm2’s isolation guarantees and allows sandbox escape from untrusted JavaScript into the host Node.js environment. Because the vulnerability exposes a host object directly, an attacker can pivot from sandboxed execution to arbitrary code execution in the host process. This can result in full compromise of the application context running vm2, including unauthorized access to sensitive data, modification of application state, execution of arbitrary commands through the host runtime, and disruption of service availability.
Mitigation
If you can’t patch tonight, do this now.
If immediate patching is not possible, reduce or eliminate exposure by preventing untrusted or attacker-controlled JavaScript from being executed through vm2. Restrict access to any application features, APIs, automation workflows, plugin systems, or agent frameworks that pass untrusted code into the sandbox. Where strong isolation is required, use stronger containment boundaries such as process isolation, containers, microVMs, or V8 isolate-based designs rather than relying solely on vm2’s JavaScript-level sandboxing.
Remediation
Patch, then assume compromise.
Upgrade vm2 to version 3.11.0 or later, as the vulnerability is fixed in 3.11.0. Given the broader pattern of critical vm2 sandbox-escape issues reported in 2026, upgrading to the latest available maintained release is preferable where possible. Security teams should also review any deployments that rely on vm2 for execution of untrusted code and validate that no affected versions remain in use.
Exploits
No public exploits tracked yet. Mallory keeps watching.
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-43997 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2026-43997 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-43997?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2026-43997.
- Is there a patch for CVE-2026-43997?
- Upgrade vm2 to version 3.11.0 or later, as the vulnerability is fixed in 3.11.0. Given the broader pattern of critical vm2 sandbox-escape issues reported in 2026, upgrading to the latest available maintained release is preferable where possible.
- What products are affected by CVE-2026-43997?
- Vm2 Project Vm2.
- How severe is CVE-2026-43997?
- CVE-2026-43997 has a CVSS v3.1 score of 10.0 (Critical) and an EPSS score of 0.77% (52nd percentile) as of Oct 16, 2026.
Recent activity
12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.