Skip to content
OpenAdvisories
Critical · 9.8 CVE-2026-47210 EUVD-2026-36448GHSA-6j2x-vhqr-qr7q

vm2 sandbox escape via JSPI-backed Promise `.finally()` species bypass

Published Jun 12, 2026 · Updated Jun 13, 2026 · Assigned by GitHub_M

Description

vm2 is an open source vm/sandbox for Node.js. Prior to version 3.11.4, a sandbox escape vulnerability in vm2 allows arbitrary code execution in the host process when untrusted code is executed with async support on runtimes exposing WebAssembly JSPI (WebAssembly.promising / WebAssembly.Suspending). In the tested configuration, a JSPI-backed Promise can reach Promise.prototype.finally() in a way that bypasses the expected Promise-species hardening and exposes a host-originated rejection object to attacker-controlled species logic, breaking the sandbox boundary. This issue has been patched in version 3.11.4.

Affected products

VendorProductAffectedFixed
patriksimek vm2 < 3.11.4 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm vm2 < 3.11.4 3.11.4 GHSA-6j2x-vhqr-qr7q

Advisories 1

References