Description
vm2 versions 3.10.2 through 3.11.6 contain a sandbox escape vulnerability on Node.js 26 where Promise.prototype.finally() bypasses vm2's wrapper protections due to a stale PromiseThenLookupChain protector in V8 14.6. Attackers can exploit this by creating an async function that returns a Promise with an attacker-controlled constructor Symbol.species, allowing them to reach the host Function constructor and process object for arbitrary code execution.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| patriksimek | vm2 | 3.10.2 – < 3.11.7 | 3.11.7 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | vm2 | >= 3.10.2, < 3.11.7 | 3.11.7 | GHSA-27g9-p43v-cw3v |
Advisories 1
- WID-SEC-2026-2997 vm2: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 27, 2026
References
- GitHub Security Advisory (GHSA-27g9-p43v-cw3v) vendor-advisory
- Patch Commit patch
- Patch Commit patch
- VulnCheck Advisory: vm2 3.10.2 through 3.11.6 Sandbox Escape via Promise Protector third-party-advisory