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

CVE-2026-26996: Minimatch ReDoS Denial of Service Flaw

CVE-2026-26996 is a Regular Expression Denial of Service (ReDoS) vulnerability in Minimatch that allows attackers to cause exponential backtracking. This article covers technical details, affected versions, and mitigation.

Published: February 27, 2026

CVE-2026-26996 Overview

CVE-2026-26996 is a Regular Expression Denial of Service (ReDoS) vulnerability in minimatch, a widely-used Node.js utility for converting glob expressions into JavaScript RegExp objects. The vulnerability exists in versions 10.2.0 and below, where a maliciously crafted glob pattern containing many consecutive * wildcards followed by a literal character can cause catastrophic backtracking in V8's regex engine.

Critical Impact

Applications that pass user-controlled strings to minimatch() as the pattern argument are vulnerable to denial of service attacks with exponential time complexity O(4^N), where a single call with N=34 wildcards can hang indefinitely.

Affected Products

  • minimatch versions ≤ 10.2.0 for Node.js
  • Any Node.js application using vulnerable minimatch versions with user-controlled glob patterns
  • Build tools, file matchers, and CLI utilities dependent on minimatch

Discovery Timeline

  • 2026-02-20 - CVE CVE-2026-26996 published to NVD
  • 2026-02-20 - Last updated in NVD database

Technical Details for CVE-2026-26996

Vulnerability Analysis

The vulnerability stems from how minimatch compiles glob patterns containing multiple consecutive * (asterisk) wildcards. When a glob pattern like ***************x is processed, each * character is individually compiled into a separate [^/]*? regex group. This creates a regex with numerous non-deterministic matching groups.

When the resulting regular expression is tested against a string that doesn't contain the literal character following the wildcards (e.g., x in this case), V8's regex engine must backtrack through all possible ways to split the input string across the wildcard groups. This results in exponential time complexity of O(4^N), where N is the number of * characters.

The practical impact is severe: with just 15 consecutive wildcards, a single minimatch() call takes approximately 2 seconds. With 34 wildcards, the function effectively hangs forever, enabling attackers to consume server resources and cause denial of service.

Root Cause

The root cause is the lack of coalescing for consecutive non-globstar * characters during regex compilation. In vulnerable versions, each individual * in a sequence generates its own regex capture group ([^/]*?), rather than recognizing that multiple consecutive wildcards are semantically equivalent to a single wildcard. This creates an exponentially complex regex pattern susceptible to catastrophic backtracking.

Attack Vector

This vulnerability is exploitable over the network in any application that accepts user-controlled input and passes it to minimatch() as the pattern argument. Common attack scenarios include:

  • File search endpoints accepting glob patterns from users
  • Build system configurations with user-supplied file matching patterns
  • CLI tools processing user-provided glob expressions
  • API endpoints that filter or match files based on client-supplied patterns

An attacker simply needs to submit a pattern with many consecutive * wildcards followed by a character not present in the target string to trigger the exponential backtracking.

The security patch introduces coalescing logic that recognizes consecutive * characters and treats them as a single wildcard, preventing the creation of multiple regex groups:

typescript
     let escaping = false
     let re = ''
     let uflag = false
+    // multiple stars that aren't globstars coalesce into one *
+    let inStar = false
     for (let i = 0; i < glob.length; i++) {
       const c = glob.charAt(i)
       if (escaping) {
         escaping = false
         re += (reSpecials.has(c) ? '\\' : '') + c
         continue
       }
+      if (c === '*') {
+        if (inStar) continue
+        inStar = true
+        re += noEmpty && /^[*]+$/.test(glob) ? starNoEmpty : star
+        hasMagic = true
+        continue
+      } else {
+        inStar = false
+      }
       if (c === '\\') {
         if (i === glob.length - 1) {
           re += '\\\\'

Source: GitHub Commit Update

Detection Methods for CVE-2026-26996

Indicators of Compromise

  • Unusual CPU spikes in Node.js processes running minimatch operations
  • Application timeouts or hangs during file pattern matching operations
  • Request logs showing patterns with excessive consecutive * characters
  • Thread pool exhaustion in applications using minimatch for glob matching

Detection Strategies

  • Implement request timeout monitoring for endpoints that process glob patterns
  • Add logging for glob patterns containing more than 10 consecutive * characters
  • Monitor CPU utilization anomalies in services using minimatch for file matching
  • Use dependency scanning tools to identify vulnerable minimatch versions in your codebase

Monitoring Recommendations

  • Deploy application performance monitoring (APM) to detect regex-related CPU spikes
  • Set up alerts for request latency exceeding normal thresholds on glob-processing endpoints
  • Monitor for patterns of DoS attempts targeting file matching functionality
  • Review access logs for suspicious patterns with repeated wildcard characters

How to Mitigate CVE-2026-26996

Immediate Actions Required

  • Upgrade minimatch to version 10.2.1 or later immediately
  • Audit your codebase for all minimatch usage with user-controlled input
  • Implement input validation to limit the number of consecutive wildcards in user-supplied patterns
  • Consider adding request timeouts to endpoints that process glob patterns

Patch Information

The vulnerability has been fixed in minimatch version 10.2.1. The fix coalesces consecutive non-globstar * characters into a single wildcard, preventing the creation of multiple regex groups that cause exponential backtracking. The patch is available via the GitHub Security Advisory GHSA-3ppc-4f35-3m26 and the security patch commit.

Workarounds

  • Sanitize user input to reject or collapse consecutive * wildcards before passing to minimatch
  • Implement regex timeout mechanisms at the application level
  • Use alternative glob matching libraries that are not susceptible to ReDoS
  • Wrap minimatch calls in try-catch with timeout logic to prevent indefinite hangs
bash
# Update minimatch to patched version
npm update minimatch@10.2.1

# Or update via package.json
npm install minimatch@^10.2.1 --save

# Audit for vulnerable dependencies
npm audit fix

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechMinimatch

  • SeverityHIGH

  • CVSS Score8.7

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/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
  • AvailabilityHigh
  • CWE References
  • CWE-1333
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-3ppc-4f35-3m26
  • Related CVEs
  • CVE-2026-27904: minimatch DOS Vulnerability

  • CVE-2026-27903: minimatch DOS Vulnerability

  • CVE-2022-3517: Minimatch ReDoS Denial of Service Flaw
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