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 vulnerability in patriksimek vm2 (an open source Node.js sandbox) arises from improper control of dynamically-managed code resources (CWE-913). 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 access the host's TypeError constructor. This access allows escaping the sandbox environment and executing arbitrary code on the host system. The vulnerability is patched in vm2 version 3.11.4.
Potential Impact
Successful exploitation 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 confidentiality, integrity, and availability compromise of the affected environment. The CVSS 3.1 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 mitigation or temporary workaround is documented. Patch status is confirmed by the vendor's advisory indicating the issue is fixed 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 vulnerability in patriksimek vm2 (an open source Node.js sandbox) arises from improper control of dynamically-managed code resources (CWE-913). 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 access the host's TypeError constructor. This access allows escaping the sandbox environment and executing arbitrary code on the host system. The vulnerability is patched in vm2 version 3.11.4.
Potential Impact
Successful exploitation 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 confidentiality, integrity, and availability compromise of the affected environment. The CVSS 3.1 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 mitigation or temporary workaround is documented. Patch status is confirmed by the vendor's advisory indicating the issue is fixed 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: 6/12/2026, 2:39:30 PM
Last enriched: 6/12/2026, 2:55:56 PM
Last updated: 6/13/2026, 4:57:48 AM
Views: 12
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.