Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
CriticalPublic exploit

vm2 NodeVM nesting sandbox escape leading to host command execution

IdentifiersCVE-2026-44007CWE-284· Improper Access Control

CVE-2026-44007 is an improper access control flaw in vm2, the Node.js sandbox library. In vm2 versions up to and including 3.11.0, when a NodeVM is instantiated with nesting: true, code running inside the sandbox can unconditionally require('vm2') regardless of the outer NodeVM's require policy, including configurations explicitly set to require: false. Once the sandboxed code gains access to the vm2 module, it can instantiate a new inner NodeVM with attacker-controlled and less restrictive require settings, then use that inner VM to access dangerous modules and execute arbitrary operating system commands on the host. The issue is effectively a sandbox escape caused by insufficient enforcement of module access restrictions across nested NodeVM contexts.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation results in a full sandbox escape. An attacker able to run untrusted JavaScript in a vulnerable NodeVM configuration can bypass the intended module-loading restrictions, create a nested VM with unrestricted imports, and execute arbitrary OS commands on the underlying host. This can lead to complete compromise of the application environment, including arbitrary code execution, theft or modification of accessible data, service disruption, and potential lateral movement depending on the host's privileges and surrounding environment.

Mitigation

If you can’t patch tonight, do this now.

Do not run untrusted code in vm2 NodeVM instances with nesting: true enabled. The maintainer explicitly describes nesting: true as an escape hatch by design and warns it should not be enabled for untrusted code. Where immediate patching is not possible, disable nesting, avoid exposing vm2-backed execution to untrusted tenants, restrict host-level privileges of the Node.js process, and apply OS/container isolation so that a sandbox escape does not directly yield high-value host access.

Remediation

Patch, then assume compromise.

Upgrade vm2 to version 3.11.1 or later. The provided content states the vulnerability is fixed in 3.11.1, including rejection of the unsafe new NodeVM({ nesting: true, require: false }) construction pattern. More broadly, users should move to the most recent maintained vm2 release available in their environment, as later releases also address additional sandbox escape issues.
PUBLIC EXPLOITS

Exploits

No public exploits tracked yet. Mallory keeps watching.

VALID 0 / 0 TOTALView more in app

No public exploit code observed for this vulnerability.

EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Vm2 ProjectVm2application

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity6

Community discussion across Reddit, Mastodon, and other social sources.