CVE-2026-47131 Details
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.
A vulnerability in vm2 versions prior to 3.11.4 allows for sandbox escape and remote code execution by manipulating the prototype chain of host-realm objects. This is achieved by using the `Object.prototype.__proto__` setter to sever the link to essential prototype properties, such as `TypeError.prototype`, which can then be exploited to access host functions and execute arbitrary code. The issue arises from the bridge's `thisEnsureThis` method, which fails to recognize tampered prototype chains, allowing unwrapped host objects to be returned to the sandbox environment.
Users can upgrade to vm2 version 3.11.4 or later to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 12, 2026CISA-ADP
Assessed Jun 12, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/patriksimek/vm2/security/advisories/GHSA-v6mx-mf47-r5wg | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/patriksimek/vm2/commit/27c525f4615e2b983f122e2bed327d810126f5c8 | [email protected] | Source CodeVendor |
| https://github.com/patriksimek/vm2/releases/tag/v3.11.4 | [email protected] | Release NotesVendor |
| https://github.com/patriksimek/vm2/security/advisories/GHSA-v6mx-mf47-r5wg | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-913 | Improper Control of Dynamically-Managed Code Resources | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| vm2 | <= 3.11.3 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 13, 2026 | CVE Modified | CISA-ADP |
| Jun 12, 2026 | New CVE Received | [email protected] |
Volerion