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

Critical 9.8 Published Updated

Attackers can escape the vm2 sandbox and execute arbitrary code on the host by exploiting a Promise species bypass in JSPI-enabled runtimes.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-47210?

CVE-2026-47210 is a critical code injection vulnerability in patriksimek vm2, published on 12 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-913

Which versions are affected by CVE-2026-47210?

2 open source packages ship an affected version, including vm2.

PackageAffectedFixed in
vm2 npmAll versions3.11.4
vm2 npmAll versions3.11.4

How do I fix CVE-2026-47210?

Upgrade vm2 to 3.11.4 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-47210 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-47210 exists.

Sources

Also known as ECHO-a718-c1c0-dbe7, GHSA-6j2x-vhqr-qr7q, MINI-45h5-4vvj-h7x3, ROOT-APP-NPM-CVE-2026-47210.

Is CVE-2026-47210 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free