Skip to main content
Mallory
← Back to News
open-source-dependency-vulnerabilitywidely-deployed-product-advisorycloud-service-vulnerabilitylateral-movement-method

Critical vm2 Sandbox Escapes Expose Node.js Hosts to Arbitrary Code Execution

Vulnerability Disclosure · 13 sources · Updated 5mo ago · First seen May 7, 2026

Critical vm2 Sandbox Escapes Expose Node.js Hosts to Arbitrary Code Execution

Researchers disclosed a broad set of critical flaws in the vm2 Node.js sandbox library that allow untrusted JavaScript to break isolation and execute arbitrary code on the host system. Reports describe 11 to 12 vulnerabilities affecting versions across the 3.9.6 to 3.11.1 range, with most rated CVSS 9.8 to 10.0, and impacting core protections such as built-in allowlists, object handling, prototype traversal, Promise species behavior, util.inspect, Module._load(), WebAssembly exception handling, and unsafe nesting: true configurations. One tracked issue, CVE-2026-24118, is a sandbox breakout through __lookupGetter__ in versions prior to 3.11.0, enabling host-level command execution with no privileges or user interaction.

The disclosures reinforce long-running concerns that vm2's JavaScript-only isolation model is not dependable for high-risk use cases such as multi-tenant code execution, plugin evaluation, automated grading, and serverless workloads. While some reports recommend upgrading to vm2 3.11.2 for the latest protections, others note that CVE-2026-44008 and CVE-2026-44009 remain unpatched and argue that organizations handling untrusted code should consider stronger isolation boundaries such as containers or microVMs. Successful exploitation could expose environment variables, credentials, and files, and enable full compromise of the underlying Node.js host and potential lateral movement.

Why it matters

Impact assessment

vm2 users that execute attacker-controlled or tenant-supplied JavaScript are directly affected, especially SaaS code runners, plugin platforms, CI/CD services, automated grading systems, and serverless-style Node.js workloads. Impact is critical because successful exploitation breaks sandbox isolation and enables arbitrary command execution on the underlying host with the privileges of the Node.js process, exposing secrets, files, environment variables, and creating lateral movement risk.

Exposure is broad across vm2 versions from 3.9.6 through 3.11.1, although practical exploitability depends on whether the application actually runs untrusted code inside vm2. The reporting describes multiple working sandbox escapes and proof-of-concept host command execution, but the provided sources do not cite confirmed in-the-wild exploitation incidents.

Affected populations and products

  • Product: vm2 Node.js sandbox library
  • High-risk use cases: multi-tenant code execution, plugin evaluation, CI pipelines, automated grading, serverless functions, code execution platforms
  • Affected versions reported across disclosures: 3.9.6 through 3.11.1, with issue-specific ranges below

Severity and business consequences

  • Sandbox escape negates vm2's core security purpose
  • Host-level arbitrary code execution can lead to:
    • credential and secret exposure
    • filesystem access
    • arbitrary shell command execution
    • operational disruption of the Node.js host
    • pivoting to adjacent internal systems
  • Severity reported as critical across most issues, with CVSS commonly 9.8 to 10.0

Scope and exploitation status

  • Scope is potentially widespread wherever vm2 is used to isolate untrusted JavaScript
  • Risk is lower where vm2 is only installed as a dependency but never instantiated, or only used for trusted internal scripts
  • Sources include multiple proof-of-concept exploits demonstrating host command execution, including root-level execution in a test environment for one issue
  • No explicit confirmation of exploitation in the wild was provided in the source set
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

6 events · May 3, 2026 – May 14, 2026
  1. May 14, 20267mo ago

    CVE-2026-45411 disclosed in vm2 async generator sandbox escape

    A new vm2 sandbox escape vulnerability, CVE-2026-45411, was documented involving async generator delegation and V8’s native handling of thenables during abrupt completion. The issue reportedly bypasses vm2’s JavaScript exception instrumentation and Promise.then sanitization, enabling remote code execution from the sandbox.

    CVE-2026-45411: CVE-2026-45411: Remote Code Execution via Sandbox Escape in vm2 Async Generator Implementation | CVEReports
  2. May 7, 20267mo ago

    Users advised to upgrade to vm2 3.11.2 amid latest disclosures

    Following the latest disclosures, users were advised to upgrade to vm2 3.11.2 for the best available protection. One report also noted that two vulnerabilities, CVE-2026-44008 and CVE-2026-44009, remained unpatched in the parallel disclosure set, underscoring ongoing risk in vm2's isolation model.

  3. May 7, 20267mo ago

    Researchers disclose broad set of critical vm2 sandbox escape flaws

    Researchers disclosed a large batch of critical vulnerabilities in vm2 affecting versions through 3.11.1, with reports citing 11 to 12 flaws that enable sandbox escape and arbitrary code execution on the host. The issues impacted core sandbox protections, object handling, allowlists, and multiple escape vectors including __lookupGetter__, inspect-related behavior, prototype traversal, and Promise species handling.

  4. May 4, 20267mo ago

    GitHub Security Advisory receives CVE-2026-24118

    GitHub Security Advisories newly received CVE-2026-24118 on May 4, 2026, documenting the vm2 sandbox escape as a critical issue with CVSS 9.8. The advisory tied the flaw to sandbox breakout via __lookupGetter__ and referenced the corresponding fix.

  5. May 4, 20267mo ago

    vm2 patches CVE-2026-24118 in version 3.11.0

    A critical sandbox breakout vulnerability, CVE-2026-24118, affecting vm2 versions prior to 3.11.0 was fixed in vm2 version 3.11.0. The flaw allowed attackers to escape the Node.js sandbox and execute arbitrary commands on the host system.

  6. May 3, 20267mo ago

    GitHub advisory discloses vm2 null-prototype exception sandbox escape

    A GitHub security advisory disclosed a vm2 sandbox breakout affecting versions up to and including 3.11.1. The advisory said exception handling in handleException could let attackers access the host Function object and achieve host command execution, and included a proof of concept.

    Sandbox Breakout Through Null Proto Exception · Advisory · patriksimek/vm2 · GitHub
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.