CVE-2026-44007: CWE-284: Improper Access Control in patriksimek vm2
vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.1, when a NodeVM is created with nesting: true, sandbox code can unconditionally require('vm2') regardless of the outer VM's require configuration — including require: false. With access to vm2, the sandbox constructs a new inner NodeVM with its own unrestricted require settings and executes arbitrary OS commands on the host. Any application that runs untrusted code inside a NodeVM with nesting: true is fully compromised. This vulnerability is fixed in 3.11.1.
AI Analysis
Technical Summary
The vm2 Node.js sandbox prior to version 3.11.1 contains an improper access control vulnerability (CWE-284) when NodeVM instances are created with nesting: true. In this configuration, sandboxed code can unconditionally require the 'vm2' module regardless of the outer VM's require configuration, including when require is disabled. This access allows the sandbox to instantiate an inner NodeVM with unrestricted require permissions, leading to arbitrary OS command execution on the host system. This vulnerability results in a complete compromise of the host environment for applications running untrusted code in nested NodeVMs. The issue is fixed in vm2 version 3.11.1.
Potential Impact
Successful exploitation allows sandboxed code to bypass intended module loading restrictions and execute arbitrary operating system commands on the host. This leads to full compromise of the host application environment when untrusted code is run inside a nested NodeVM. The CVSS v3.1 score is 9.1 (critical), reflecting network attack vector, low attack complexity, high privileges required, no user interaction, and complete confidentiality, integrity, and availability impact.
Mitigation Recommendations
Upgrade vm2 to version 3.11.1 or later, where this vulnerability is fixed. Applications running untrusted code inside NodeVM instances with nesting enabled should apply this update to prevent exploitation. Patch status is confirmed fixed in 3.11.1. No other mitigations are indicated by the vendor advisory.
CVE-2026-44007: CWE-284: Improper Access Control in patriksimek vm2
Description
vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.1, when a NodeVM is created with nesting: true, sandbox code can unconditionally require('vm2') regardless of the outer VM's require configuration — including require: false. With access to vm2, the sandbox constructs a new inner NodeVM with its own unrestricted require settings and executes arbitrary OS commands on the host. Any application that runs untrusted code inside a NodeVM with nesting: true is fully compromised. This vulnerability is fixed in 3.11.1.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vm2 Node.js sandbox prior to version 3.11.1 contains an improper access control vulnerability (CWE-284) when NodeVM instances are created with nesting: true. In this configuration, sandboxed code can unconditionally require the 'vm2' module regardless of the outer VM's require configuration, including when require is disabled. This access allows the sandbox to instantiate an inner NodeVM with unrestricted require permissions, leading to arbitrary OS command execution on the host system. This vulnerability results in a complete compromise of the host environment for applications running untrusted code in nested NodeVMs. The issue is fixed in vm2 version 3.11.1.
Potential Impact
Successful exploitation allows sandboxed code to bypass intended module loading restrictions and execute arbitrary operating system commands on the host. This leads to full compromise of the host application environment when untrusted code is run inside a nested NodeVM. The CVSS v3.1 score is 9.1 (critical), reflecting network attack vector, low attack complexity, high privileges required, no user interaction, and complete confidentiality, integrity, and availability impact.
Mitigation Recommendations
Upgrade vm2 to version 3.11.1 or later, where this vulnerability is fixed. Applications running untrusted code inside NodeVM instances with nesting enabled should apply this update to prevent exploitation. Patch status is confirmed fixed in 3.11.1. No other mitigations are indicated by the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-04T21:24:36.505Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a04ba22cbff5d8610f482cb
Added to database: 5/13/2026, 5:51:30 PM
Last enriched: 5/13/2026, 6:06:58 PM
Last updated: 5/14/2026, 6:48:16 AM
Views: 8
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.