CVE-2026-47141: CWE-668: Exposure of Resource to Wrong Sphere in patriksimek vm2
vm2 is an open source vm/sandbox for Node.js. Prior to version 3.11.4, NodeVM exposes some process-wide observability builtins when they are allowed through require.builtin. The diagnostics_channel, async_hooks, and perf_hooks builtins are not blocked by the dangerous builtin denylist. These modules are process-wide, not sandbox-local. Sandboxed code can use them to observe host application data across the vm2 boundary. This issue has been patched in version 3.11.4.
AI Analysis
Technical Summary
The vm2 sandbox for Node.js prior to version 3.11.4 exposed process-wide observability built-in modules (diagnostics_channel, async_hooks, perf_hooks) to sandboxed code when allowed via require.builtin. These modules are not sandbox-local but process-wide, enabling sandboxed code to observe host application data beyond the intended isolation boundary. This constitutes an exposure of resources to an unintended sphere (CWE-668). The vulnerability has been patched in vm2 version 3.11.4.
Potential Impact
Sandboxed code can access process-wide observability modules that allow it to monitor host application data, breaking the intended isolation of the vm2 sandbox. This may lead to unintended information disclosure from the host environment to the sandboxed code. There is no indication of privilege escalation or remote code execution from the provided data.
Mitigation Recommendations
A fix is available in vm2 version 3.11.4 that patches this vulnerability by blocking exposure of these process-wide builtins. Users should upgrade to version 3.11.4 or later to remediate this issue. No other mitigation guidance is provided or required.
CVE-2026-47141: CWE-668: Exposure of Resource to Wrong Sphere in patriksimek vm2
Description
vm2 is an open source vm/sandbox for Node.js. Prior to version 3.11.4, NodeVM exposes some process-wide observability builtins when they are allowed through require.builtin. The diagnostics_channel, async_hooks, and perf_hooks builtins are not blocked by the dangerous builtin denylist. These modules are process-wide, not sandbox-local. Sandboxed code can use them to observe host application data across the vm2 boundary. This issue has been patched in version 3.11.4.
CVSS v4.0
Score 6.9medium
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 vm2 sandbox for Node.js prior to version 3.11.4 exposed process-wide observability built-in modules (diagnostics_channel, async_hooks, perf_hooks) to sandboxed code when allowed via require.builtin. These modules are not sandbox-local but process-wide, enabling sandboxed code to observe host application data beyond the intended isolation boundary. This constitutes an exposure of resources to an unintended sphere (CWE-668). The vulnerability has been patched in vm2 version 3.11.4.
Potential Impact
Sandboxed code can access process-wide observability modules that allow it to monitor host application data, breaking the intended isolation of the vm2 sandbox. This may lead to unintended information disclosure from the host environment to the sandboxed code. There is no indication of privilege escalation or remote code execution from the provided data.
Mitigation Recommendations
A fix is available in vm2 version 3.11.4 that patches this vulnerability by blocking exposure of these process-wide builtins. Users should upgrade to version 3.11.4 or later to remediate this issue. No other mitigation guidance is provided or required.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-18T19:50:18.696Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a2c1a23e617e2d8347eb1e7
Added to database: 6/12/2026, 2:39:31 PM
Last enriched: 6/12/2026, 2:55:23 PM
Last updated: 6/13/2026, 4:56:50 AM
Views: 10
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.