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

CVE-2026-24118: vm2 Node.js Sandbox Breakout RCE Flaw

CVE-2026-24118 is a sandbox breakout RCE vulnerability in vm2 for Node.js that allows attackers to escape the sandbox and execute arbitrary commands on the host. This article covers technical details, affected versions, and patches.

Published: May 7, 2026

CVE-2026-24118 Overview

CVE-2026-24118 is a sandbox escape vulnerability in vm2, an open source virtual machine and sandbox library for Node.js. Versions prior to 3.11.0 allow attackers to break out of the isolated execution environment and run arbitrary commands on the host system. The flaw is classified as code injection [CWE-94] and stems from incomplete isolation between sandboxed scripts and the host Node.js runtime. Maintainers patched the issue in vm2 version 3.11.0. Applications that evaluate untrusted JavaScript inside vm2 — including serverless platforms, online code editors, and automation tools — are directly exposed.

Critical Impact

Attackers can escape the vm2 sandbox over the network with no authentication and no user interaction, achieving full code execution on the host.

Affected Products

  • vm2 versions prior to 3.11.0
  • Node.js applications embedding vulnerable vm2 releases
  • Downstream services that evaluate untrusted JavaScript through vm2

Discovery Timeline

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

Technical Details for CVE-2026-24118

Vulnerability Analysis

The vm2 library wraps Node.js's built-in vm module to provide a hardened sandbox for running untrusted JavaScript. It rewrites code, proxies host objects, and intercepts prototype access to prevent guest code from reaching the underlying runtime. CVE-2026-24118 defeats this isolation. Attacker-controlled scripts can pivot from the sandbox into the host context and execute arbitrary commands with the privileges of the Node.js process.

Because vm2 is commonly placed at the trust boundary between user input and server-side execution, a successful escape gives the attacker the same capabilities as the application itself. That includes reading secrets from environment variables, calling child_process APIs, and pivoting to internal services.

Root Cause

The root cause is improper control of code generation during sandboxed evaluation [CWE-94]. The sandbox's proxy and prototype filtering logic fails to fully constrain object reachability, allowing crafted scripts to obtain a reference to a host object whose methods execute outside the isolated context. The fix in version 3.11.0 tightens these checks. Refer to GitHub Security Advisory GHSA-grj5-jjm8-h35p for the maintainer's analysis.

Attack Vector

Exploitation requires only the ability to submit JavaScript to a service that evaluates it through a vulnerable vm2 instance. No credentials and no user interaction are needed. The attack is network-reachable wherever the host application accepts untrusted code, such as a REST endpoint, message queue worker, or webhook handler. Once the sandbox is broken, the attacker runs commands as the Node.js process owner. Technical details are available in the GitHub Commit Fix and GitHub Release v3.11.0.

Detection Methods for CVE-2026-24118

Indicators of Compromise

  • Node.js processes hosting vm2 spawning unexpected child processes such as sh, bash, cmd.exe, or powershell.exe.
  • Outbound network connections from the application service account to unfamiliar destinations shortly after sandboxed code execution.
  • New files written outside the application's working directory by the Node.js runtime.
  • Reads of /etc/passwd, ~/.aws/credentials, or environment dumps initiated by the sandbox host process.

Detection Strategies

  • Inventory all production dependencies and flag any vm2 version below 3.11.0 using npm ls vm2 or software composition analysis tooling.
  • Hunt for process, require, child_process, or Function references in user-submitted scripts that reach the vm2 evaluator.
  • Correlate sandboxed evaluation events with subsequent process creation, file writes, and outbound DNS to detect escape behavior.

Monitoring Recommendations

  • Enable process lineage logging on hosts running Node.js services and alert when vm2-bearing processes spawn shells or interpreters.
  • Forward application, host, and network telemetry into a centralized analytics pipeline for cross-source correlation.
  • Track exploit availability against this CVE in threat intelligence feeds and re-prioritize patching if proof-of-concept code emerges.

How to Mitigate CVE-2026-24118

Immediate Actions Required

  • Upgrade vm2 to version 3.11.0 or later in every Node.js project, including transitive dependencies.
  • Audit application logs for evaluations of attacker-controlled JavaScript and treat affected systems as potentially compromised until reviewed.
  • Restrict the privileges of the Node.js process so that a successful escape does not yield root or administrator access.

Patch Information

The maintainers fixed CVE-2026-24118 in vm23.11.0. The relevant changes are documented in the GitHub Commit Update and GitHub Commit Fix. Update with npm install vm2@^3.11.0 and rebuild any container images or serverless bundles that pin older versions.

Workarounds

  • If patching is not immediately possible, stop accepting untrusted JavaScript through vm2 until the upgrade is deployed.
  • Migrate to a process-isolated execution model such as a hardened container, gVisor, or a separate Node.js worker with seccomp restrictions.
  • Apply strict input filtering to reject scripts that reference constructor, __proto__, process, or require before evaluation.
bash
# Configuration example
npm install vm2@^3.11.0
npm ls vm2
npm audit --production

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

  • 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 Release v3.11.0

  • GitHub Security Advisory GHSA-grj5-jjm8-h35p
  • Related CVEs
  • CVE-2026-26956: vm2 Sandbox Escape RCE Vulnerability

  • 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