The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-24781

CVE-2026-24781: VM2 Sandbox Breakout RCE Vulnerability

CVE-2026-24781 is a sandbox breakout RCE vulnerability in VM2, a Node.js sandbox library. Attackers can exploit the inspect function to escape the sandbox and execute arbitrary commands on the host system.

Published: May 7, 2026

CVE-2026-24781 Overview

CVE-2026-24781 is a sandbox breakout vulnerability in vm2, an open source virtual machine and sandbox library for Node.js. Versions prior to 3.11.0 fail to properly isolate the inspect function, allowing attackers to escape the sandbox boundary. Successful exploitation enables arbitrary command execution on the host system running the embedded sandbox. The maintainers patched the issue in vm2 version 3.11.0. The flaw is classified under CWE-94: Improper Control of Generation of Code and affects any Node.js application that relies on vm2 to execute untrusted JavaScript.

Critical Impact

Attackers who can submit JavaScript to a vm2 sandbox can break out of the isolation boundary and execute arbitrary operating system commands on the host.

Affected Products

  • vm2 (patriksimek/vm2) versions prior to 3.11.0
  • Node.js applications embedding vulnerable vm2 versions
  • Server-side platforms that execute untrusted user-supplied JavaScript through vm2

Discovery Timeline

  • 2026-05-04 - CVE CVE-2026-24781 published to NVD
  • 2026-05-07 - Last updated in NVD database

Technical Details for CVE-2026-24781

Vulnerability Analysis

vm2 provides a sandboxed execution context intended to run untrusted JavaScript safely inside a Node.js process. The library wraps host objects with proxies and contextifies globals to prevent sandboxed code from reaching the outer realm. CVE-2026-24781 breaks this guarantee through the inspect function, which exposes a path back to host objects that vm2 did not properly mediate. Once an attacker reaches a host-side constructor or function, they can call into Node.js built-ins such as child_process and execute arbitrary commands. The vulnerability is network-exploitable in any deployment where remote input is fed into a vm2 sandbox, for example serverless code execution services, no-code platforms, and chatbot plugin runtimes.

Root Cause

The root cause is improper isolation of the inspect function within the vm2 contextification logic. The function returned objects whose prototype chain still referenced host-realm constructors, violating the sandbox invariant that no host object should be reachable from sandboxed code. This is consistent with the CWE-94 class of code generation flaws. Technical details are documented in the GitHub Security Advisory GHSA-v37h-5mfm-c47c and the corresponding GitHub Release v3.11.0.

Attack Vector

Exploitation requires only the ability to submit JavaScript source to an application that evaluates it inside vm2. The attacker crafts a payload that invokes inspect to obtain a reference to a host-realm object. From that reference, the attacker walks the prototype chain to reach a host Function constructor. Constructing a function in the host realm and invoking it returns full Node.js privileges, including access to require('child_process').exec for shell command execution. Refer to the patch commits 8d30d93, bdd3d15, and fd266d0 for the exact code paths corrected by the maintainers.

// No verified public proof-of-concept code is referenced in the advisory.
// See GHSA-v37h-5mfm-c47c for technical details on the inspect breakout.

Detection Methods for CVE-2026-24781

Indicators of Compromise

  • Node.js processes spawning unexpected child processes such as /bin/sh, bash, cmd.exe, or powershell.exe from a service that should only run JavaScript evaluation.
  • Outbound network connections originating from the Node.js runtime to attacker-controlled hosts shortly after user-supplied script execution.
  • Application logs containing unusual references to inspect, Function, or constructor chains submitted by external users.
  • New files written to the filesystem by the Node.js service account outside expected working directories.

Detection Strategies

  • Inventory all Node.js applications and dependencies and flag any package-lock entries pinning vm2 below 3.11.0.
  • Monitor for process lineage where node is the parent of a shell or scripting interpreter, which is anomalous for sandboxed code execution services.
  • Inspect web application logs for request bodies containing inspect(, __proto__, or constructor.constructor patterns aimed at sandbox escape.

Monitoring Recommendations

  • Forward Node.js process telemetry, including command-line arguments and parent-child relationships, to a centralized analytics platform.
  • Alert on egress traffic from Node.js workloads to non-allowlisted destinations.
  • Track software composition analysis output across CI/CD pipelines to catch reintroduction of vulnerable vm2 versions.

How to Mitigate CVE-2026-24781

Immediate Actions Required

  • Upgrade vm2 to version 3.11.0 or later in all Node.js projects and rebuild affected container images.
  • Audit application dependency trees, including transitive dependencies, for any remaining references to vulnerable vm2 versions.
  • Restrict network egress and filesystem permissions of services that execute untrusted JavaScript.
  • Review historical logs for evidence of sandbox escape attempts targeting inspect.

Patch Information

The maintainers fixed the vulnerability in vm2 3.11.0. Apply the upgrade via npm install [email protected] or the equivalent yarn or pnpm command. The official fix is described in the GitHub Release v3.11.0 notes and the GitHub Security Advisory GHSA-v37h-5mfm-c47c. Note that the vm2 project has since been deprecated by its author in favor of alternative isolation approaches such as isolated-vm; teams should plan migration where feasible.

Workarounds

  • If immediate patching is not possible, refuse user-supplied JavaScript at the application boundary until the upgrade is deployed.
  • Run the Node.js service inside a hardened container or microVM with minimal capabilities, no shell, and read-only root filesystem.
  • Drop the ability to spawn child processes by removing or stubbing the child_process module from the host Node.js process.
bash
# Upgrade vm2 to the patched version
npm install [email protected] --save

# Verify resolved version across the dependency tree
npm ls vm2

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechVm2

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.14%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-94
  • Technical References
  • GitHub Commit Update

  • GitHub Commit Fix

  • GitHub Commit Changes

  • GitHub Release v3.11.0

  • GitHub Security Advisory GHSA-v37h-5mfm-c47c
  • Related CVEs
  • CVE-2026-24118: vm2 Node.js Sandbox Breakout RCE Flaw

  • CVE-2026-26956: vm2 Sandbox Escape RCE Vulnerability

  • CVE-2026-26332: Vm2 Sandbox Escape RCE Vulnerability

  • CVE-2026-24120: vm2 Node.js Sandbox RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English