CVE-2026-47131: CWE-913: Improper Control of Dynamically-Managed Code Resources in patriksimek vm2
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.
AI Analysis
Technical Summary
The patriksimek vm2 sandbox for Node.js contains an improper control of dynamically-managed code resources vulnerability (CWE-913) identified as CVE-2026-47131. By combining Buffer.call.call on __lookupGetter__ and __lookupSetter__ for the Buffer object's __proto__ property along with Node.js's ERR_INVALID_ARG_TYPE error, an attacker can retrieve the host's TypeError constructor. This capability allows sandbox escape and arbitrary code execution on the host system. The vulnerability affects all vm2 versions before 3.11.4 and has been patched in 3.11.4.
Potential Impact
Exploitation of this vulnerability allows an unauthenticated attacker to escape the vm2 sandbox and execute arbitrary code on the host system with the privileges of the Node.js process. This results in full compromise of the host environment, including confidentiality, integrity, and availability impacts. The CVSS v3.1 base score is 10.0 (critical), reflecting network attack vector, no required privileges or user interaction, and complete system compromise.
Mitigation Recommendations
A fix is available in patriksimek vm2 version 3.11.4. Users should upgrade to version 3.11.4 or later to remediate this vulnerability. No other mitigations are indicated by the vendor advisory. Patch status is confirmed by the version bump and explicit mention of the fix in 3.11.4.
CVE-2026-47131: CWE-913: Improper Control of Dynamically-Managed Code Resources in patriksimek vm2
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.
CVSS v3.1
Score 10.0critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The patriksimek vm2 sandbox for Node.js contains an improper control of dynamically-managed code resources vulnerability (CWE-913) identified as CVE-2026-47131. By combining Buffer.call.call on __lookupGetter__ and __lookupSetter__ for the Buffer object's __proto__ property along with Node.js's ERR_INVALID_ARG_TYPE error, an attacker can retrieve the host's TypeError constructor. This capability allows sandbox escape and arbitrary code execution on the host system. The vulnerability affects all vm2 versions before 3.11.4 and has been patched in 3.11.4.
Potential Impact
Exploitation of this vulnerability allows an unauthenticated attacker to escape the vm2 sandbox and execute arbitrary code on the host system with the privileges of the Node.js process. This results in full compromise of the host environment, including confidentiality, integrity, and availability impacts. The CVSS v3.1 base score is 10.0 (critical), reflecting network attack vector, no required privileges or user interaction, and complete system compromise.
Mitigation Recommendations
A fix is available in patriksimek vm2 version 3.11.4. Users should upgrade to version 3.11.4 or later to remediate this vulnerability. No other mitigations are indicated by the vendor advisory. Patch status is confirmed by the version bump and explicit mention of the fix in 3.11.4.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-18T19:50:18.695Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a2c1a22e617e2d8347eb1cc
Added to database: 06/12/2026, 14:39:30 UTC
Last enriched: 06/19/2026, 18:23:22 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 72
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.