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

CVE-2026-26954: Nyariv Sandboxjs RCE Vulnerability

CVE-2026-26954 is a remote code execution vulnerability in Nyariv Sandboxjs that enables attackers to escape the sandbox and execute arbitrary code. This article covers the technical details, affected versions, and mitigation.

Published: March 20, 2026

CVE-2026-26954 Overview

CVE-2026-26954 is a critical code injection vulnerability in SandboxJS, a JavaScript sandboxing library developed by Nyariv. Prior to version 0.8.34, the library contains a flaw that allows attackers to obtain arrays containing the Function constructor, enabling complete sandbox escape. By leveraging access to Function and Object.fromEntries, an attacker can construct arbitrary objects with executable properties, effectively bypassing all sandbox security controls and executing arbitrary JavaScript code in the host environment.

Critical Impact

Complete sandbox escape allowing arbitrary code execution in the host Node.js environment. Attackers can bypass all security restrictions implemented by the sandbox, potentially leading to full system compromise.

Affected Products

  • Nyariv SandboxJS versions prior to 0.8.34
  • Node.js applications utilizing vulnerable SandboxJS versions
  • Web applications relying on SandboxJS for JavaScript code isolation

Discovery Timeline

  • 2026-03-13 - CVE-2026-26954 published to NVD
  • 2026-03-17 - Last updated in NVD database

Technical Details for CVE-2026-26954

Vulnerability Analysis

This vulnerability represents a fundamental sandbox escape flaw (CWE-94: Improper Control of Generation of Code) in SandboxJS. JavaScript sandboxing libraries must carefully control access to dangerous primitives like the Function constructor, which can be used to execute arbitrary code. In vulnerable versions of SandboxJS, certain code paths inadvertently expose arrays containing the Function constructor to sandboxed code.

Once an attacker obtains a reference to Function, they can combine it with Object.fromEntries to construct objects with arbitrary properties mapped to executable functions. This technique allows construction of {[p]: Function} where p is any constructible property, effectively granting the attacker the ability to define and execute arbitrary functions outside the sandbox context.

The scope of impact is significant—a successful exploit results in code execution in the parent Node.js environment with the same privileges as the host application, bypassing all intended security controls.

Root Cause

The root cause lies in insufficient isolation of built-in JavaScript objects and constructors within the sandbox environment. SandboxJS failed to properly sanitize or proxy arrays that could contain references to the Function constructor. The library's object inspection and property enumeration mechanisms allowed sandboxed code to access these privileged objects through indirect paths that were not adequately protected.

Attack Vector

The attack is network-accessible and requires no authentication or user interaction. An attacker who can supply JavaScript code to be executed within the SandboxJS environment can exploit this vulnerability. Common attack scenarios include:

  1. User-provided code execution: Applications that allow users to write and execute custom JavaScript logic
  2. Plugin/extension systems: Platforms that sandbox third-party code using SandboxJS
  3. Template engines: Systems that evaluate user-controlled JavaScript expressions

The attacker leverages the ability to enumerate or access array contents containing Function, then uses Object.fromEntries to construct executable objects. This bypasses the sandbox boundary entirely, allowing arbitrary code execution in the host environment.

Detection Methods for CVE-2026-26954

Indicators of Compromise

  • Unexpected process spawning or child process creation from Node.js applications using SandboxJS
  • File system access patterns inconsistent with application behavior from sandboxed contexts
  • Network connections initiated from within sandboxed execution contexts
  • Evidence of Object.fromEntries usage combined with Function constructor access in application logs

Detection Strategies

  • Implement dependency scanning to identify SandboxJS versions prior to 0.8.34 in your software supply chain
  • Monitor application logs for sandbox escape attempts or unusual code execution patterns
  • Deploy runtime application self-protection (RASP) solutions that can detect and block sandbox escape techniques
  • Utilize static analysis tools to identify code patterns that may expose dangerous constructors to sandboxed environments

Monitoring Recommendations

  • Enable verbose logging for SandboxJS execution contexts to capture potential escape attempts
  • Implement behavioral monitoring for Node.js processes to detect privilege escalation from sandboxed code
  • Set up alerts for any network or file system operations originating from sandboxed execution contexts
  • Monitor for unusual memory access patterns that may indicate sandbox boundary violations

How to Mitigate CVE-2026-26954

Immediate Actions Required

  • Upgrade SandboxJS to version 0.8.34 or later immediately
  • Audit applications using SandboxJS to identify potential exposure to untrusted code execution
  • Consider temporarily disabling user-provided code execution features until patching is complete
  • Implement additional defense-in-depth measures such as process isolation or containerization for sandboxed code execution

Patch Information

The vulnerability is fixed in SandboxJS version 0.8.34. The patch addresses the improper exposure of Function constructor references within arrays accessible to sandboxed code. Users should update their dependencies immediately by modifying their package.json to require version 0.8.34 or later.

For detailed patch information, refer to the GitHub Security Advisory GHSA-6r9f-759j-hjgv.

Workarounds

  • If immediate patching is not possible, restrict or disable features that allow execution of user-provided JavaScript code
  • Implement additional process-level isolation using Node.js worker threads or separate processes for sandboxed code
  • Apply strict input validation to limit the JavaScript constructs that can be executed within the sandbox
  • Consider migrating to alternative sandboxing solutions such as isolated VM environments while awaiting patch deployment
bash
# Update SandboxJS to patched version
npm update @nyariv/sandboxjs@0.8.34

# Verify installed version
npm list @nyariv/sandboxjs

# For yarn users
yarn upgrade @nyariv/sandboxjs@0.8.34

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechNyariv Sandboxjs

  • 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
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-25587: Nyariv Sandboxjs RCE Vulnerability

  • CVE-2026-34208: Nyariv SandboxJS Auth Bypass Vulnerability

  • CVE-2026-34211: Nyariv Sandboxjs DOS Vulnerability

  • CVE-2026-34217: Nyariv Sandboxjs Information Disclosure
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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