CVE-2026-47698: CWE-913: Improper Control of Dynamically-Managed Code Resources in patriksimek vm2
CVE-2026-47698 is a critical vulnerability in the open source Node.js sandbox vm2 prior to version 3.11.6. The flaw allows sandboxed code to bypass prototype chain protections via stacked indirection through Function.prototype.call, enabling arbitrary host command execution. This is due to improper control of dynamically-managed code resources in specific vm2 modules. The issue is fixed in vm2 version 3.11.6.
AI Analysis
Technical Summary
The vulnerability in vm2 (CVE-2026-47698) arises from improper control of dynamically-managed code resources (CWE-913) in lib/bridge.js and lib/setup-sandbox.js. Before version 3.11.6, these modules fail to block stacked indirection through Function.prototype.call around dangerous host prototype getter and setter mutators. This allows sandboxed code to sever a host intrinsic's prototype chain and access e.constructor.constructor, leading to arbitrary host command execution. The vulnerability has a CVSS 3.1 base score of 9.8, indicating critical severity. The issue is resolved in vm2 version 3.11.6.
Potential Impact
Exploitation of this vulnerability allows an attacker to execute arbitrary commands on the host system from within the sandboxed environment, compromising confidentiality, integrity, and availability of the host. The CVSS score of 9.8 reflects the high impact with network attack vector, no privileges required, and no user interaction needed.
Mitigation Recommendations
Upgrade vm2 to version 3.11.6 or later to apply the official fix that addresses this vulnerability. No other mitigation is required as the issue is resolved in this version.
CVE-2026-47698: CWE-913: Improper Control of Dynamically-Managed Code Resources in patriksimek vm2
Description
CVE-2026-47698 is a critical vulnerability in the open source Node.js sandbox vm2 prior to version 3.11.6. The flaw allows sandboxed code to bypass prototype chain protections via stacked indirection through Function.prototype.call, enabling arbitrary host command execution. This is due to improper control of dynamically-managed code resources in specific vm2 modules. The issue is fixed in vm2 version 3.11.6.
CVSS v3.1
Score 9.8critical
Affected software
patriksimek
vm2
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 vm2 (CVE-2026-47698) arises from improper control of dynamically-managed code resources (CWE-913) in lib/bridge.js and lib/setup-sandbox.js. Before version 3.11.6, these modules fail to block stacked indirection through Function.prototype.call around dangerous host prototype getter and setter mutators. This allows sandboxed code to sever a host intrinsic's prototype chain and access e.constructor.constructor, leading to arbitrary host command execution. The vulnerability has a CVSS 3.1 base score of 9.8, indicating critical severity. The issue is resolved in vm2 version 3.11.6.
Potential Impact
Exploitation of this vulnerability allows an attacker to execute arbitrary commands on the host system from within the sandboxed environment, compromising confidentiality, integrity, and availability of the host. The CVSS score of 9.8 reflects the high impact with network attack vector, no privileges required, and no user interaction needed.
Mitigation Recommendations
Upgrade vm2 to version 3.11.6 or later to apply the official fix that addresses this vulnerability. No other mitigation is required as the issue is resolved in this version.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-19T21:18:20.404Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a837910bf8831d539931950
Added to database: 08/17/2026, 21:11:44 UTC
Last enriched: 09/12/2026, 00:16:26 UTC
Last updated: 10/02/2026, 02:46:04 UTC
Views: 61
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.