CVE-2026-47140 vm2: NodeVM builtin denylist bypass via process and inspector/promises allows host code execution

Critical 10.0 Published Updated

Attackers can bypass sandbox restrictions in vm2 to execute arbitrary code on the host system by accessing missing builtins.

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

CVE-2026-47140 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, NodeVM blocks several dangerous Node.js builtins such as module, worker_threads, cluster, vm, repl, and inspector. However, the denylist misses process and inspector/promises. Both can be used from sandboxed code to reach host-side execution primitives. This allows sandboxed code to bypass the intended builtin restrictions and execute code in the host process. This issue has been patched in version 3.11.4.

Weakness: CWE-693

Which versions are affected by CVE-2026-47140?

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

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

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

Sources

Also known as ECHO-cb10-a83c-3146, GHSA-rp36-8xq3-r6c4, MINI-m857-ffj4-2fgq, ROOT-APP-NPM-CVE-2026-47140.

Is CVE-2026-47140 in your software?

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

Check your SBOMs for free