CVE-2026-47698 vm2: Sandbox Breakout Using Dangerous Host Proto Mutators

Critical 9.8 Published Updated

Attackers can escape the vm2 sandbox to execute arbitrary host commands via prototype chain manipulation. Developers using vm2 for isolation must upgrade.

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

CVE-2026-47698 is a critical code injection vulnerability in patriksimek vm2, published on 17 Aug 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 3.11.6, lib/bridge.js and lib/setup-sandbox.js fail to block stacked indirection through Function.prototype.call around dangerous host prototype getter and setter mutators, allowing sandbox code to sever a host intrinsic's prototype chain and reach e.constructor.constructor for arbitrary host command execution. This issue is fixed in version 3.11.6.

Weakness: CWE-913

Which versions are affected by CVE-2026-47698?

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

PackageAffectedFixed in
vm2 npmAll versions3.11.6
vm2 npmAll versions3.11.6

How do I fix CVE-2026-47698?

Upgrade vm2 to 3.11.6 or later.

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

Is CVE-2026-47698 being exploited?

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

Sources

Also known as CLEANSTART-2026-SV74760, ECHO-9f22-2489-f01b, GHSA-cfcw-xp6x-25gj, MINI-fvvm-j7cx-w636, ROOT-APP-NPM-CVE-2026-47698.

Is CVE-2026-47698 in your software?

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

Check your SBOMs for free