CVE-2026-47686: CWE-693: Protection Mechanism Failure in patriksimek vm2
CVE-2026-47686 is a critical vulnerability in the vm2 sandbox for Node.js prior to version 3.11.6. The vulnerability arises because the handleException() function does not sanitize the Error.cause property, allowing sandboxed code to access powerful host objects like process via specially crafted errors. This can lead to arbitrary command execution on the host. The issue is fixed in vm2 version 3.11.6.
AI Analysis
Technical Summary
The vm2 sandbox for Node.js versions before 3.11.6 contains a protection mechanism failure (CWE-693) in the handleException() function within lib/setup-sandbox.js. While it sanitizes certain error properties (SuppressedError.error, SuppressedError.suppressed, AggregateError.errors), it fails to sanitize the Error.cause property. This omission allows sandboxed code to obtain privileged host objects, such as the process object, from an embedder-exposed host function that throws an error with that object as its cause. Exploiting this flaw enables execution of arbitrary commands on the host system. The vulnerability is addressed in version 3.11.6.
Potential Impact
Successful exploitation allows sandboxed code to escape the vm2 sandbox and execute arbitrary commands on the host system with the privileges of the Node.js process. This compromises confidentiality, integrity, and availability of the host environment, making it a critical security risk.
Mitigation Recommendations
Upgrade vm2 to version 3.11.6 or later, where the vulnerability is fixed by properly sanitizing the Error.cause property in handleException(). No other mitigation is required as the fix is official and complete.
CVE-2026-47686: CWE-693: Protection Mechanism Failure in patriksimek vm2
Description
CVE-2026-47686 is a critical vulnerability in the vm2 sandbox for Node.js prior to version 3.11.6. The vulnerability arises because the handleException() function does not sanitize the Error.cause property, allowing sandboxed code to access powerful host objects like process via specially crafted errors. This can lead to arbitrary command execution on the host. The issue is fixed in vm2 version 3.11.6.
CVSS v3.1
Score 9.9critical
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 vm2 sandbox for Node.js versions before 3.11.6 contains a protection mechanism failure (CWE-693) in the handleException() function within lib/setup-sandbox.js. While it sanitizes certain error properties (SuppressedError.error, SuppressedError.suppressed, AggregateError.errors), it fails to sanitize the Error.cause property. This omission allows sandboxed code to obtain privileged host objects, such as the process object, from an embedder-exposed host function that throws an error with that object as its cause. Exploiting this flaw enables execution of arbitrary commands on the host system. The vulnerability is addressed in version 3.11.6.
Potential Impact
Successful exploitation allows sandboxed code to escape the vm2 sandbox and execute arbitrary commands on the host system with the privileges of the Node.js process. This compromises confidentiality, integrity, and availability of the host environment, making it a critical security risk.
Mitigation Recommendations
Upgrade vm2 to version 3.11.6 or later, where the vulnerability is fixed by properly sanitizing the Error.cause property in handleException(). No other mitigation is required as the fix is official and complete.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-19T21:18:20.403Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a837910bf8831d53993194b
Added to database: 08/17/2026, 21:11:44 UTC
Last enriched: 09/12/2026, 00:16:32 UTC
Last updated: 10/02/2026, 02:46:04 UTC
Views: 51
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.