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

CVE-2026-32094: Shescape Path Traversal Vulnerability

CVE-2026-32094 is a path traversal flaw in Shescape that fails to escape square-bracket glob syntax in Bash, BusyBox sh, and Dash, allowing attackers to expand values into multiple filesystem matches.

Published: March 13, 2026

CVE-2026-32094 Overview

CVE-2026-32094 is an Input Validation Error vulnerability in Shescape, a JavaScript shell escape library. Prior to version 2.1.10, the Shescape#escape() function fails to properly escape square-bracket glob syntax for Bash, BusyBox sh, and Dash shells. Applications that interpolate the return value directly into a shell command string can allow an attacker-controlled value like secret[12] to expand into multiple filesystem matches instead of a single literal argument, effectively turning one argument into multiple trusted-pathname matches.

Critical Impact

Attackers can bypass shell escaping mechanisms to expand glob patterns, potentially accessing unintended files or causing unexpected command behavior through argument injection.

Affected Products

  • Shescape JavaScript library versions prior to 2.1.10
  • Applications using Bash, BusyBox sh, or Dash shells with vulnerable Shescape versions
  • Node.js applications implementing shell command construction with Shescape escape functions

Discovery Timeline

  • 2026-03-11 - CVE CVE-2026-32094 published to NVD
  • 2026-03-12 - Last updated in NVD database

Technical Details for CVE-2026-32094

Vulnerability Analysis

This vulnerability stems from incomplete input sanitization in the Shescape library's escape functionality. The Shescape#escape() function is designed to safely escape user-provided input before it is interpolated into shell commands. However, the function fails to account for square-bracket glob syntax, which is a shell pattern matching feature used in Bash, BusyBox sh, and Dash.

When an attacker provides input containing square brackets (e.g., secret[12]), the escape function passes these characters through unmodified. When the escaped string is subsequently used in a shell command, the shell interprets the square brackets as glob patterns. This causes the shell to expand the pattern to match filenames on the filesystem, potentially matching files like secret1 or secret2 instead of treating the input as the literal string secret[12].

The vulnerability is classified under CWE-200 (Information Exposure), as successful exploitation can lead to unintended information disclosure by accessing files that match the glob pattern.

Root Cause

The root cause is missing input sanitization for shell glob metacharacters in the Shescape#escape() function. The library correctly escapes many shell special characters but overlooks square brackets ([ and ]), which are valid glob pattern syntax in POSIX-compatible shells. This oversight allows glob expansion to occur when the escaped value is used in shell command interpolation.

Attack Vector

The attack vector is network-based, requiring no special privileges or user interaction. An attacker can exploit this vulnerability by providing maliciously crafted input to any application that:

  1. Accepts user-controlled input
  2. Processes that input through Shescape#escape()
  3. Interpolates the escaped result directly into a shell command string
  4. Executes the command using Bash, BusyBox sh, or Dash

For example, if an application constructs a command like cat ${shescape.escape(userInput)} and the attacker provides config[123], the shell may expand this to match multiple configuration files, potentially exposing sensitive data or causing unexpected command behavior.

Detection Methods for CVE-2026-32094

Indicators of Compromise

  • Unexpected file access patterns in application logs showing glob-like patterns with square brackets
  • Shell command execution logs containing expanded file lists instead of single literal arguments
  • Error messages indicating multiple file matches when single file arguments were expected
  • Unusual filesystem access to multiple files with similar naming patterns

Detection Strategies

  • Audit application dependencies for Shescape versions prior to 2.1.10 using package management tools
  • Implement runtime monitoring for shell command construction patterns that include user-controlled input
  • Review application logs for commands containing square-bracket patterns in arguments
  • Use static code analysis to identify instances where Shescape#escape() output is interpolated into shell commands

Monitoring Recommendations

  • Enable verbose logging for shell command execution in affected applications
  • Monitor for anomalous file access patterns that suggest glob expansion exploitation
  • Implement alerting for dependency vulnerability scanning results that flag Shescape
  • Track changes to sensitive configuration or data files that could be targeted via glob expansion

How to Mitigate CVE-2026-32094

Immediate Actions Required

  • Update Shescape to version 2.1.10 or later immediately
  • Audit all application code paths that use Shescape#escape() for shell command construction
  • Implement additional input validation to reject or escape square-bracket characters before processing
  • Review file access logs for any signs of exploitation prior to patching

Patch Information

The vulnerability is addressed in Shescape version 2.1.10. The fix properly escapes square-bracket glob syntax to prevent shell expansion. The patch is available via the GitHub commit 6add105c6f6b508662bb5ae3b3bdd4c9bcebf37a. For complete technical details, refer to the GitHub Security Advisory GHSA-9jfh-9xrq-4vwm.

Workarounds

  • Manually escape square brackets in user input before passing to Shescape#escape() by replacing [ with \[ and ] with \]
  • Use shell quote functions that fully quote arguments rather than selective escaping
  • Avoid direct string interpolation of escaped values into shell commands; prefer array-based command construction with child_process.spawn() instead of child_process.exec()
  • Implement allowlist validation on user input to reject any characters not explicitly required
bash
# Example: Update Shescape to patched version
npm update shescape@2.1.10

# Verify installed version
npm list shescape

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechShescape

  • SeverityMEDIUM

  • CVSS Score6.9

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-200
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-9jfh-9xrq-4vwm
  • Related CVEs
  • CVE-2026-30916: Shescape Information Disclosure 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