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
    • 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-25587

CVE-2026-25587: SandboxJS RCE Vulnerability

CVE-2026-25587 is a remote code execution vulnerability in SandboxJS that allows attackers to escape the sandbox by overwriting Map.prototype.has. This article covers technical details, affected versions, impact, and mitigation.

Published: February 13, 2026

CVE-2026-25587 Overview

SandboxJS is a JavaScript sandboxing library designed to securely execute untrusted code in an isolated environment. Prior to version 0.8.29, a critical vulnerability exists that allows attackers to escape the sandbox through prototype pollution. Because Map is included in SAFE_PROTOTYPES, its prototype can be obtained via Map.prototype. By overwriting Map.prototype.has, an attacker can bypass sandbox restrictions and achieve arbitrary code execution outside the sandboxed environment. This vulnerability is classified as CWE-94 (Improper Control of Generation of Code - Code Injection).

Critical Impact

This sandbox escape vulnerability allows attackers to execute arbitrary code outside of the sandboxed environment, completely bypassing the security isolation that SandboxJS is designed to provide. Applications relying on SandboxJS for security boundaries are at risk of full system compromise.

Affected Products

  • SandboxJS versions prior to 0.8.29
  • Applications utilizing SandboxJS for JavaScript code sandboxing
  • Node.js and browser environments running vulnerable SandboxJS versions

Discovery Timeline

  • 2026-02-06 - CVE CVE-2026-25587 published to NVD
  • 2026-02-06 - Last updated in NVD database

Technical Details for CVE-2026-25587

Vulnerability Analysis

This sandbox escape vulnerability stems from an oversight in how SandboxJS handles safe prototypes. The library maintains a list of SAFE_PROTOTYPES that are considered trusted and accessible within the sandbox. However, the Map object was incorrectly included in this list, allowing sandboxed code to access Map.prototype directly.

The critical flaw lies in the ability to overwrite built-in methods on Map.prototype. When an attacker overwrites Map.prototype.has with malicious code, the sandbox's internal mechanisms that rely on Map.has() for security checks become compromised. This allows the attacker to manipulate the sandbox's control flow and escape the isolated execution context.

The vulnerability enables network-based attacks with no user interaction required, allowing complete compromise of confidentiality, integrity, and availability while affecting resources beyond the vulnerable component's security scope.

Root Cause

The root cause is the inclusion of Map in the SAFE_PROTOTYPES list without adequate protection against prototype method overwrites. The sandbox failed to properly freeze or protect the prototypes of objects it considered safe, allowing attackers to poison these prototypes with malicious functions that execute when the sandbox internally uses these methods.

Attack Vector

An attacker can exploit this vulnerability by submitting malicious JavaScript code to any application that uses SandboxJS for code isolation. The attack requires no authentication or user interaction and can be executed remotely over the network. The attacker crafts code that:

  1. Accesses Map.prototype through the exposed safe prototype
  2. Overwrites Map.prototype.has with a malicious function
  3. Triggers the sandbox's internal use of Map.has(), causing the malicious code to execute with elevated privileges outside the sandbox

The security patch introduces additional protections by importing LocalScope and reservedWords to harden the sandbox against such bypass attempts:

typescript
   IOptionParams,
   IOptions,
   IScope,
+  LocalScope,
   replacementCallback,
   SandboxGlobal,
   SubscriptionSubject,

Source: GitHub Commit Update

typescript
 import unraw from './unraw.js';
-import { CodeString, isLisp, LispType } from './utils.js';
+import { CodeString, isLisp, LispType, reservedWords } from './utils.js';
 
 export type DefineLisp<
   op extends LispType,

Source: GitHub Commit Update

Detection Methods for CVE-2026-25587

Indicators of Compromise

  • Unexpected code execution outside of sandbox boundaries in application logs
  • Modifications to Map.prototype or other built-in JavaScript prototypes in sandboxed code
  • Unusual process spawning or network connections originating from sandboxed execution contexts
  • Error messages or stack traces indicating prototype chain manipulation

Detection Strategies

  • Monitor JavaScript execution logs for attempts to access or modify Map.prototype.has or similar prototype methods
  • Implement runtime integrity checks for built-in JavaScript object prototypes
  • Deploy application-level logging to capture all code submitted to SandboxJS for sandbox execution
  • Use SentinelOne's Singularity platform to detect anomalous code execution patterns indicative of sandbox escape attempts

Monitoring Recommendations

  • Enable verbose logging in applications using SandboxJS to capture sandbox execution details
  • Set up alerts for any modifications to JavaScript built-in prototypes in production environments
  • Regularly audit code submitted to sandbox environments for known escape patterns
  • Implement network monitoring to detect unexpected outbound connections from sandboxed processes

How to Mitigate CVE-2026-25587

Immediate Actions Required

  • Upgrade SandboxJS to version 0.8.29 or later immediately
  • Audit all applications using SandboxJS to identify vulnerable deployments
  • Review logs for any evidence of exploitation attempts prior to patching
  • Consider temporarily disabling sandbox functionality if immediate patching is not possible

Patch Information

The vulnerability has been fixed in SandboxJS version 0.8.29. The security patch hardens the sandbox against code execution bypass by implementing additional protections for prototype handling. The fix introduces LocalScope and reservedWords imports to properly validate and restrict access to potentially dangerous prototype chains. For complete technical details, refer to the GitHub Security Advisory GHSA-66h4-qj4x-38xp and the security patch commit.

Workarounds

  • Implement additional validation layers around code submitted to SandboxJS
  • Use Object.freeze() on critical prototypes before initializing the sandbox environment
  • Deploy network segmentation to limit the impact of potential sandbox escapes
  • Consider alternative sandboxing solutions until patching is complete
bash
# Update SandboxJS to patched version
npm update sandboxjs@0.8.29

# Verify installed version
npm list sandboxjs

# For yarn users
yarn upgrade sandboxjs@0.8.29

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechSandboxjs

  • SeverityCRITICAL

  • CVSS Score10.0

  • EPSS Probability0.06%

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

  • GitHub Security Advisory GHSA-66h4-qj4x-38xp
  • Related CVEs
  • CVE-2026-25881: SandboxJS Sandbox Escape RCE Vulnerability

  • CVE-2026-25520: SandboxJS RCE Vulnerability

  • CVE-2026-25586: SandboxJS Sandbox Escape RCE Vulnerability

  • CVE-2026-25142: SandboxJS RCE Vulnerability
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