CVE-2026-47131 vm2: Sandbox Escape

Critical 10.0 Published Updated

Attackers can escape the vm2 sandbox to execute arbitrary code on the host system by exploiting prototype manipulation techniques.

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-47131?

CVE-2026-47131 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, by combining Buffer.call.call({}.__lookupGetter__, Buffer, "__proto__"), Buffer.call.call({}.__lookupSetter__, Buffer, "__proto__"), and Node.js's ERR_INVALID_ARG_TYPE Error, the host's TypeError constructor can be obtained, which allows the escape from the sandbox. This allows attackers to run arbitrary code. This issue has been patched in version 3.11.4.

Weakness: CWE-913

Which versions are affected by CVE-2026-47131?

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-47131?

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-47131 being exploited?

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

Sources

Also known as ECHO-9565-53a0-c71c, GHSA-v6mx-mf47-r5wg, MINI-6rh5-8mg5-hc8j, ROOT-APP-NPM-CVE-2026-47131.

Is CVE-2026-47131 in your software?

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

Check your SBOMs for free