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

CVE-2026-24120: vm2 Node.js Sandbox RCE Vulnerability

CVE-2026-24120 is a remote code execution flaw in vm2, a Node.js sandbox library, allowing attackers to escape the VM2 sandbox and execute arbitrary commands on the host. This article covers technical details, affected versions, and patches.

Published: May 7, 2026

CVE-2026-24120 Overview

CVE-2026-24120 is a sandbox escape vulnerability in vm2, an open source virtual machine and sandbox library for Node.js. The flaw exists in versions prior to 3.10.5 and stems from an incomplete fix for CVE-2023-37466. Attackers can craft JavaScript that bypasses the sandbox boundary and executes arbitrary commands on the host system. The issue is tracked under CWE-94: Improper Control of Generation of Code. The maintainers patched the vulnerability in vm2 version 3.10.5.

Critical Impact

Unauthenticated attackers who control code executed inside vm2 can escape the sandbox and run arbitrary OS commands, leading to full compromise of the host process.

Affected Products

  • vm2 versions prior to 3.10.5
  • Node.js applications embedding vm2 to evaluate untrusted JavaScript
  • Downstream packages and services that depend on vulnerable vm2 releases

Discovery Timeline

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

Technical Details for CVE-2026-24120

Vulnerability Analysis

vm2 provides a JavaScript sandbox that intercepts access to host objects through proxy handlers and prototype filtering. CVE-2023-37466 documented a path that allowed sandboxed code to reach the underlying Node.js context. The patch shipped for that earlier issue did not fully constrain every interception path. CVE-2026-24120 demonstrates that the residual gap remains reachable from inside the sandbox.

An attacker who can submit JavaScript to a vulnerable vm2 instance can break out of the isolated context and obtain a reference to host primitives. From that reference, the attacker can require arbitrary modules, including child_process, and execute commands with the privileges of the Node.js process. The vulnerability does not require authentication or user interaction in the typical deployment, where untrusted code is executed by design.

Root Cause

The root cause is incomplete sanitization of the prototype chain and host object proxies used by vm2 to enforce the sandbox boundary. Specific bypass details are described in GitHub Security Advisory GHSA-qvjj-29qf-hp7p and the vm2 v3.10.5 release notes.

Attack Vector

Exploitation occurs over the network when a service evaluates attacker-controlled JavaScript using vm2. Common exposure points include online code playgrounds, serverless function platforms, no-code automation engines, and bot frameworks that run user-supplied scripts. After escaping the sandbox, the attacker invokes Node.js APIs to spawn processes, read filesystem contents, or pivot into adjacent infrastructure.

No verified proof-of-concept code is published in the NVD entry. Refer to the upstream security advisory for technical details on the bypass technique.

Detection Methods for CVE-2026-24120

Indicators of Compromise

  • Unexpected child_process.spawn or exec calls originating from Node.js processes that host a vm2 sandbox
  • Outbound network connections from Node.js workers that should only execute isolated user scripts
  • New files written under application working directories or /tmp by sandbox worker processes
  • Crash logs or stack traces referencing internal vm2 proxy handlers shortly before suspicious activity

Detection Strategies

  • Inventory dependencies with npm ls vm2 and Software Composition Analysis tooling to flag versions below 3.10.5.
  • Alert on Node.js processes spawning shells (/bin/sh, cmd.exe, powershell.exe) when the parent application is documented as a sandbox host.
  • Hunt in EDR telemetry for parent-child process chains where a Node.js runtime executes interpreters such as bash, python, or curl.
  • Review application logs for syntax patterns associated with prototype pollution and proxy abuse submitted to script evaluation endpoints.

Monitoring Recommendations

  • Continuously monitor outbound DNS and HTTP traffic from servers running script evaluation services for anomalous destinations.
  • Track filesystem writes and credential file reads (/etc/passwd, cloud metadata endpoints) by Node.js worker processes.
  • Forward Node.js, container, and host telemetry to a centralized analytics platform for correlation across the kill chain.

How to Mitigate CVE-2026-24120

Immediate Actions Required

  • Upgrade vm2 to version 3.10.5 or later in all affected applications and rebuild deployment artifacts.
  • Audit every code path that passes user-controlled input to vm2.run, NodeVM, or related APIs.
  • Rotate secrets accessible to the Node.js process if exploitation cannot be ruled out from logs.
  • Consider migrating to actively maintained alternatives such as isolated-vm for executing untrusted JavaScript.

Patch Information

The upstream fix is available in the vm2 v3.10.5 release. Update via npm install [email protected] or pin a later release in package.json and package-lock.json. Coordinate redeployment of any container images, serverless functions, or bundled binaries that include the vulnerable dependency.

Workarounds

  • Run Node.js services that embed vm2 inside hardened containers with seccomp, AppArmor, or SELinux profiles that block process execution.
  • Apply strict egress network policies to sandbox hosts so escaped code cannot reach external command-and-control infrastructure.
  • Disable or gate any user-facing endpoints that pass arbitrary scripts to vm2 until the patched version is deployed.
bash
# Configuration example
npm install [email protected] --save-exact
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.08%

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

  • GitHub Security Advisory GHSA-qvjj-29qf-hp7p
  • Related CVEs
  • CVE-2026-45411: vm2 Node.js Sandbox RCE Vulnerability

  • CVE-2026-44009: vm2 Node.js Sandbox RCE Vulnerability

  • CVE-2026-44008: vm2 Node.js Sandbox RCE Vulnerability

  • CVE-2026-24118: vm2 Node.js Sandbox Breakout RCE Flaw
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