Skip to main content
Mallory
← Back to News
open-source-dependency-vulnerabilityproof-of-concept-releasewidely-deployed-product-advisoryendpoint-software-vulnerability

Multiple Critical vm2 Sandbox Escapes Enable Host RCE in Node.js Environments

Vulnerability Disclosure · 18 sources · Updated 5mo ago · First seen Jun 12, 2026

Multiple Critical vm2 Sandbox Escapes Enable Host RCE in Node.js Environments

The vm2 Node.js sandboxing library was hit by a wave of critical sandbox-escape vulnerabilities that let attackers executing untrusted JavaScript break out and run arbitrary commands on the host. Reported flaws include CVE-2026-24120, which bypasses an earlier Promise-species mitigation to reach the host Function constructor; CVE-2026-24118, which abuses __lookupGetter__, Buffer.apply, and prototype traversal; CVE-2026-24781, which leverages inspect proxy unwrapping; CVE-2026-26332, which pivots through SuppressedError; and CVE-2026-26956, which uses WebAssembly JSTag exception handling on Node.js 25+. Across the advisories, affected versions span the 3.10.x branch and earlier, with several issues requiring only the ability to submit code to a vm2 instance and no authentication or user interaction.

The project responded with security releases v3.10.5 and v3.11.0, with v3.11.0 closing 13 advisories including sandbox escapes, denial-of-service bugs, information disclosure, and prototype pollution. Maintainers also patched a separate NodeVM issue tracked as GHSA-m4wx-m65x-ghrr, where enabling nesting: true with omitted or falsy require settings could expose the vm2 package inside the sandbox and lead to host remote code execution. The releases added broader hardening measures such as bufferAllocLimit, stricter handling of dangerous built-ins, and filesystem checks, while maintainers warned that organizations using vm2 to run fully untrusted code should upgrade immediately and avoid treating in-process JavaScript sandboxing as a sole security boundary.

Why it matters

Impact assessment

vm2 users that execute untrusted or semi-trusted JavaScript inside Node.js are directly affected, especially code-execution platforms, SaaS automation backends, online IDEs, plugin systems, and any service embedding VM or NodeVM as an isolation boundary. The impact is severe because multiple flaws enable sandbox escape to host remote code execution, allowing file access, process spawning, secret theft, and full compromise of the application host process.

Exposure is broad for organizations running vm2 versions before the fixed releases, but practical reachability depends on whether attackers can submit code to a vm2 instance or, for some NodeVM issues, whether risky options such as require.builtin or nesting are enabled. Public proof-of-concept exploit paths are described across several advisories, but the provided references do not cite confirmed in-the-wild exploitation.

Affected populations and products

  • vm2, the Node.js sandboxing library
  • VM and NodeVM deployments that run attacker-controlled JavaScript
  • Applications using vm2 as a primary isolation boundary for untrusted code
  • NodeVM deployments with require.builtin allowing process, inspector/promises, or *
  • NodeVM deployments with nesting: true, especially with omitted or falsy require
  • Node.js 25+ environments are additionally exposed to the WebAssembly JSTag escape path

Severity and business impact

  • Host remote code execution from sandboxed JavaScript
  • Theft of environment variables, credentials, and application secrets
  • Read/write access to host files from the compromised process context
  • Child process spawning and arbitrary OS command execution
  • Potential service disruption from denial-of-service issues also fixed in vm2 security releases
  • Reputational and compliance impact if multi-tenant code execution environments are compromised

Scope and exploitation status

  • Affected versions span 3.10.x and earlier, plus multiple issues affecting 3.11.0 through 3.11.3 and all versions prior to 3.11.4
  • Several issues require only the ability to submit JavaScript to a vm2 sandbox, with no authentication or user interaction
  • Public advisories include exploit mechanics and proof-of-concept details for multiple sandbox escapes
  • No explicit evidence of active exploitation in the wild is provided in the references
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.

11 events · Oct 30, 2025 – Jun 12, 2026
  1. Jun 12, 20266mo ago

    CVE-2026-47131 disclosed as vm2 sandbox escape

    A sandbox escape vulnerability in vm2 was disclosed as CVE-2026-47131, affecting versions prior to 3.11.4. The flaw uses specific Buffer.call.call sequences and Node.js ERR_INVALID_ARG_TYPE handling to obtain the host TypeError constructor and achieve arbitrary code execution outside the sandbox.

    CVE-2026-47131 - vm2: Sandbox Escape
  2. Jun 12, 20266mo ago

    vm2 version 3.11.4 patched Bridge Proxy set-trap flaw

    vm2 patched CVE-2026-47209 in version 3.11.4, fixing a flaw in bridge.js where the BaseHandler.set trap ignored the receiver parameter and could write inherited property assignments onto host objects. The bug enabled host object property injection through the prototype chain, including dangerous cross-realm Symbol keys such as nodejs.util.promisify.custom.

    CVE-2026-47209 - vm2: Bridge Proxy set trap ignores receiver parameter, enabling host object property injection via prototype chain
  3. May 18, 20266mo ago

    GitHub advisory discloses NodeVM builtin denylist bypass in vm2

    A GitHub security advisory described a vm2 NodeVM sandbox escape in which the dangerous builtin denylist omitted process and inspector/promises, allowing sandboxed code to regain host execution primitives and achieve host RCE in affected configurations. The advisory said the issue impacts deployments that allow those builtins or wildcard builtin access and recommended adding them to the dangerous builtin blocklist.

    NodeVM builtin denylist bypass via process and inspector/promises allows host code execution · Advisory · patriksimek/vm2 · GitHub
  4. May 17, 20267mo ago

    vm2 commit fixes Promise species hijack in localPromise

    A vm2 security fix was committed to close GHSA-76w7-j9cq-rx2j, a sandbox escape caused by Promise species handling in localPromise that could expose an unbridged host RangeError and lead to host Function access and possible RCE. The patch resets Symbol.species before invoking the host Promise.then path so downstream promises stay wrapped and exceptions are bridged safely.

    fix(GHSA-76w7-j9cq-rx2j): close Promise species hijack in localPromis… · patriksimek/vm2@a462655 · GitHub
  5. May 17, 20267mo ago

    vm2 commit fixes NodeVM nesting bypass with falsy require options

    A vm2 security fix was committed to close the NESTING_OVERRIDE resolver issue, preventing cases where nesting:true combined with omitted or falsy require settings could expose vm2 inside the sandbox and enable host RCE.

    fix(GHSA-m4wx-m65x-ghrr): close NESTING_OVERRIDE resolver for falsy/o… · patriksimek/vm2@01a7552 · GitHub
  6. May 4, 20267mo ago

    Public tracking issue opened for NetBox CVE-2026-29514

    A public tracking issue for the NetBox Jinja2 sandbox bypass and RCE vulnerability was opened on May 4, 2026, following the earlier disclosure-process problems described in the report.

    NetBox CVE-2026-29514: Brief Summary of Jinja2 Sandbox Bypass Leading to Remote Code Execution - ZeroPath Blog | ZeroPath
  7. May 1, 20267mo ago

    vm2 version 3.11.0 released to fix 13 advisories

    vm2 released version 3.11.0 as a coordinated security update that closed 13 advisories, including multiple sandbox-escape RCE flaws, denial-of-service issues, information disclosure, and prototype pollution weaknesses. The release also added hardening features such as buffer allocation limits and stricter defaults for dangerous builtins.

    Release v3.11.0 · patriksimek/vm2 · GitHub
  8. Apr 16, 20268mo ago

    Fastify fixed @fastify/middie auth bypass in version 9.3.2

    The @fastify/middie plugin fixed CVE-2026-6270 in version 9.3.2, resolving a middleware path prefix propagation flaw that could leave child plugin routes unprotected despite parent-scope authentication middleware.

    Brief Summary: CVE-2026-6270 - @fastify/middie Authentication Bypass via Child Plugin Scope Inheritance Failure - ZeroPath Blog | ZeroPath
  9. Mar 10, 20269mo ago

    NetBox disclosure emails reportedly sent to vendor

    According to the report on CVE-2026-29514, coordinated disclosure emails about the NetBox Jinja2 sandbox bypass were sent on March 10, 2026, but were reportedly lost during the disclosure process.

    NetBox CVE-2026-29514: Brief Summary of Jinja2 Sandbox Bypass Leading to Remote Code Execution - ZeroPath Blog | ZeroPath
  10. Feb 17, 20269mo ago

    vm2 version 3.10.5 released with sandbox escape fixes

    The vm2 project released version 3.10.5 with security hardening and fixes for multiple sandbox escape paths, including protections against access to dangerous code-execution primitives such as the Function constructor.

    Release v3.10.5 · patriksimek/vm2 · GitHub
  11. Oct 30, 20251y ago

    n8n fixed Git Node RCE in version 1.113.0

    The n8n project fixed CVE-2025-62726 in version 1.113.0, addressing a flaw where cloning a malicious repository and later committing could execute attacker-controlled pre-commit hooks with n8n process privileges.

    n8n Git Node RCE (CVE-2025-62726): Brief Summary and Technical Review - ZeroPath Blog | ZeroPath
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
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.