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-26956

CVE-2026-26956: vm2 Sandbox Escape RCE Vulnerability

CVE-2026-26956 is a sandbox escape RCE flaw in vm2 for Node.js that allows attackers to execute arbitrary code on the host system. This post explains its impact, affected versions, and mitigation steps.

Published: May 7, 2026

CVE-2026-26956 Overview

CVE-2026-26956 is a sandbox escape vulnerability in vm2, an open-source virtual machine and sandbox library for Node.js. Version 3.10.4 fails to fully isolate guest code from the host process. Attacker code running inside VM.run() can obtain a reference to the host process object and execute arbitrary host commands without any cooperation from the embedding application.

The issue is tracked under CWE-693: Protection Mechanism Failure and is patched in vm2 version 3.10.5.

Critical Impact

Untrusted JavaScript executed inside vm2 3.10.4 escapes the sandbox and runs arbitrary commands on the host with the privileges of the Node.js process.

Affected Products

  • vm2 Node.js library, version 3.10.4
  • Node.js applications embedding vm2 3.10.4 to execute untrusted JavaScript
  • Downstream packages and services that depend on vm2 3.10.4 transitively

Discovery Timeline

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

Technical Details for CVE-2026-26956

Vulnerability Analysis

The vm2 library wraps Node.js's built-in vm module to provide an isolated execution environment for untrusted code. Its security model depends on preventing guest code from accessing host objects such as process, require, and the global constructor chain.

In version 3.10.4, the protection mechanism that mediates references between the guest context and the host fails. Code passed to VM.run() reaches the real host process object instead of the proxied counterpart. Once an attacker holds a reference to process, calling process.mainModule.require('child_process').execSync() or equivalent yields full command execution on the host. No callback, custom resolver, or cooperative API surface is needed from the embedding application.

Root Cause

The vulnerability is a Protection Mechanism Failure [CWE-693]. The sandbox boundary between guest code and the host context does not consistently sanitize or proxy intrinsic objects, leaving a path through which the host process global is reachable from inside VM.run(). Refer to the GitHub Security Advisory GHSA-ffh4-j6h5-pg66 for the upstream technical description.

Attack Vector

Exploitation requires only the ability to submit JavaScript to an application that evaluates it through vm2 3.10.4. Common exposure points include online code playgrounds, serverless function evaluators, templating engines, formula and rule engines, chatbot plugins, and CI/CD steps that run user-supplied scripts. Because the attack is network-reachable and requires no privileges or user interaction, any service that accepts and executes guest JavaScript is in scope.

The vulnerability is described in prose only; no verified public proof-of-concept code is referenced in the advisory at the time of writing. See the vm2 v3.10.5 release notes for the patch details.

Detection Methods for CVE-2026-26956

Indicators of Compromise

  • Node.js processes spawning unexpected child processes such as sh, bash, cmd.exe, powershell.exe, or curl from a service that normally only evaluates JavaScript.
  • Outbound network connections originating from the Node.js process to attacker-controlled hosts shortly after a user submission.
  • Filesystem writes by the Node.js service to paths outside its working or temporary directories.
  • Presence of vm2 version 3.10.4 in package-lock.json, yarn.lock, or npm ls vm2 output across production hosts.

Detection Strategies

  • Inventory all Node.js services and scan dependency manifests for vm2@3.10.4, including transitive dependencies.
  • Audit application logs for guest scripts containing references to constructor, process, mainModule, require('child_process'), or Function('return this')().
  • Use endpoint telemetry to flag any child_process creation by services whose baseline behavior excludes shell invocation.

Monitoring Recommendations

  • Alert on Node.js parent processes spawning shells, interpreters, or networking utilities.
  • Monitor egress traffic from sandbox-hosting services and baseline expected destinations.
  • Track changes in installed npm package versions across the fleet and alert on rollbacks to vm2 3.10.4.

How to Mitigate CVE-2026-26956

Immediate Actions Required

  • Upgrade vm2 to version 3.10.5 or later in every project, including transitive dependencies, and redeploy affected services.
  • Treat any service that ran vm2 3.10.4 with untrusted input as potentially compromised and review host logs for command execution.
  • Rotate credentials, tokens, and keys accessible to the Node.js process if exploitation cannot be ruled out.

Patch Information

The maintainers fixed the sandbox escape in vm2 3.10.5. Update via npm install vm2@3.10.5 or yarn add vm2@3.10.5 and verify with npm ls vm2. See the vm2 v3.10.5 release and GHSA-ffh4-j6h5-pg66 for advisory details.

Workarounds

  • If immediate upgrade is not possible, disable code paths that pass untrusted input to VM.run() until the patched version can be deployed.
  • Run the Node.js process under a dedicated low-privilege user inside an OS-level sandbox such as a container with seccomp, AppArmor, or gVisor to limit blast radius.
  • Apply strict input validation and allowlisting to any JavaScript submitted by users, recognizing that these controls do not close the underlying sandbox escape.
  • Consider migrating long-term to actively maintained isolation primitives such as isolated-vm or out-of-process workers with strong OS-level boundaries.

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.09%

  • 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-693
  • Technical References
  • GitHub vm2 Release v3.10.5

  • GitHub Security Advisory GHSA-ffh4-j6h5-pg66
  • Related CVEs
  • CVE-2026-24118: vm2 Node.js Sandbox Breakout RCE Flaw

  • CVE-2026-24781: VM2 Sandbox Breakout 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