Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-25641

CVE-2026-25641: SandboxJS Auth Bypass Vulnerability

CVE-2026-25641 is an authentication bypass flaw in SandboxJS that allows sandbox escape through malicious object coercion. This article covers the technical details, affected versions, security impact, and mitigation.

Published: February 13, 2026

CVE-2026-25641 Overview

CVE-2026-25641 is a sandbox escape vulnerability in SandboxJS, a JavaScript sandboxing library used to execute untrusted code in a controlled environment. Prior to version 0.8.29, a critical flaw exists due to a mismatch between the key on which validation is performed and the key used for accessing properties. This Time-of-Check Time-of-Use (TOCTOU) race condition allows attackers to completely bypass sandbox restrictions and execute arbitrary code.

The vulnerability stems from the fact that although the key used in property accesses is annotated as a string type, this constraint is never enforced at runtime. Attackers can exploit this by passing malicious objects that coerce to different string values depending on when they are evaluated—one value during key sanitization via hasOwnProperty(key) and a different value during the actual property access.

Critical Impact

This vulnerability allows complete sandbox escape, enabling attackers to execute arbitrary code outside the sandboxed environment. With a network attack vector requiring no authentication or user interaction, any application using vulnerable versions of SandboxJS to isolate untrusted JavaScript code is at risk of full system compromise.

Affected Products

  • SandboxJS versions prior to 0.8.29
  • Applications using SandboxJS for JavaScript code isolation
  • Node.js and browser environments utilizing the vulnerable library

Discovery Timeline

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

Technical Details for CVE-2026-25641

Vulnerability Analysis

This vulnerability is classified as CWE-367 (Time-of-Check Time-of-Use Race Condition). The core issue lies in the executor module of SandboxJS where property access validation occurs separately from actual property access.

When the sandbox validates whether a property access is safe, it calls hasOwnProperty(key) to check if the key exists on a whitelist or is otherwise permitted. However, when the actual property access occurs moments later, the same key object is used. Since JavaScript allows objects to define custom toString() or Symbol.toPrimitive methods, an attacker can craft an object that returns different string values on consecutive coercions.

This TOCTOU gap means the validation check passes with a benign string value, but the subsequent property access uses a malicious value that grants access to restricted objects like Function, eval, or the global this context.

Root Cause

The root cause is insufficient type enforcement on property access keys within the sandbox executor. The TypeScript type annotation indicates the key should be a string, but JavaScript's duck typing allows any object with string coercion methods to be passed. The fix introduces proper validation by ensuring keys are converted to their string representation once and reused, preventing coercion attacks.

The security patch introduces changes to LocalScope handling in SandboxExec.ts and adds reserved word validation in parser.ts to prevent access to dangerous identifiers.

Attack Vector

Attackers can exploit this vulnerability remotely through any application that accepts and executes user-provided JavaScript code within a SandboxJS sandbox. The attack requires no authentication or user interaction, making it trivially exploitable in environments where untrusted code execution is a feature.

An attacker crafts a JavaScript payload containing an object with a malicious toString() method that returns different values on consecutive calls. When passed as a property key, it bypasses the safety check and accesses restricted properties.

typescript
// Security patch in src/SandboxExec.ts - importing LocalScope for proper scoping
   IOptionParams,
   IOptions,
   IScope,
+  LocalScope,
   replacementCallback,
   SandboxGlobal,
   SubscriptionSubject,

Source: GitHub Commit Changes

typescript
// Security patch in src/parser.ts - adding reserved word validation
 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 Changes

The fix hardens the sandbox by importing reservedWords for validation and modifying scope handling through LocalScope to prevent bypass attacks.

Detection Methods for CVE-2026-25641

Indicators of Compromise

  • Unexpected process spawning or file system access from Node.js applications using SandboxJS
  • Unusual network connections originating from sandboxed code execution contexts
  • Error logs showing attempts to access restricted JavaScript globals like Function, constructor, or __proto__
  • Memory access patterns indicating prototype pollution attempts

Detection Strategies

  • Implement application-level logging for all code submitted to SandboxJS execution contexts
  • Monitor for objects with custom toString() or Symbol.toPrimitive methods in sandbox inputs
  • Deploy runtime application self-protection (RASP) to detect sandbox escape attempts
  • Use SentinelOne Singularity to monitor for anomalous behavior from JavaScript runtime processes

Monitoring Recommendations

  • Enable verbose logging in applications using SandboxJS to capture execution context details
  • Monitor npm audit and dependency scanning tools for SandboxJS version alerts
  • Implement centralized logging for all sandbox execution events with input/output correlation
  • Configure alerting on unexpected system calls from Node.js or browser-based JavaScript engines

How to Mitigate CVE-2026-25641

Immediate Actions Required

  • Upgrade SandboxJS to version 0.8.29 or later immediately
  • Audit all applications using SandboxJS to identify vulnerable deployments
  • Temporarily disable untrusted code execution features if immediate patching is not possible
  • Review application logs for potential exploitation attempts prior to patching

Patch Information

The vulnerability is fixed in SandboxJS version 0.8.29. The security patch addresses the TOCTOU condition by ensuring proper key type validation and introducing reserved word checks in the parser. The fix is available via npm and the GitHub repository.

For detailed technical information about the vulnerability, consult the GitHub Security Advisory.

Workarounds

  • Disable user-provided code execution features until the patch can be applied
  • Implement additional input validation to reject objects with custom coercion methods before passing to the sandbox
  • Use process isolation (separate Node.js processes or containers) as a defense-in-depth measure
  • Apply strict Content Security Policy headers in browser environments to limit damage from potential escapes
bash
# Upgrade SandboxJS to patched version
npm update sandboxjs@0.8.29

# Verify installed version
npm list sandboxjs

# Run security audit to check for other vulnerabilities
npm audit

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechSandboxjs

  • SeverityCRITICAL

  • CVSS Score10.0

  • EPSS Probability0.05%

  • 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-367
  • Technical References
  • GitHub Code Snippet

  • GitHub Commit Changes

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-25881: SandboxJS Sandbox Escape RCE Vulnerability

  • CVE-2026-25587: SandboxJS RCE Vulnerability

  • CVE-2026-25520: SandboxJS RCE Vulnerability

  • CVE-2026-25586: SandboxJS Sandbox Escape 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