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

CVE-2026-27904: minimatch DOS Vulnerability

CVE-2026-27904 is a denial of service vulnerability in minimatch caused by nested extglobs producing catastrophic backtracking. This post covers the technical details, affected versions, impact, and mitigation steps.

Published: February 27, 2026

CVE-2026-27904 Overview

CVE-2026-27904 is a Regular Expression Denial of Service (ReDoS) vulnerability affecting minimatch, a widely-used Node.js utility for converting glob expressions into JavaScript RegExp objects. The vulnerability allows attackers to cause catastrophic backtracking in V8's regular expression engine through specially crafted nested extglob patterns, leading to severe application hangs and denial of service conditions.

Critical Impact

A minimal 12-byte malicious pattern combined with an 18-byte non-matching input can stall applications for over 7 seconds, with additional nesting or input characters extending this to minutes of CPU exhaustion.

Affected Products

  • minimatch versions prior to 10.2.3
  • minimatch versions prior to 9.0.7, 8.0.6, 7.4.8
  • minimatch versions prior to 6.2.2, 5.1.8, 4.2.5, 3.1.4

Discovery Timeline

  • 2026-02-26 - CVE CVE-2026-27904 published to NVD
  • 2026-02-26 - Last updated in NVD database

Technical Details for CVE-2026-27904

Vulnerability Analysis

This vulnerability stems from CWE-1333 (Inefficient Regular Expression Complexity), a weakness category that describes regular expressions susceptible to catastrophic backtracking. When minimatch processes nested *() or +() extglob patterns, it generates regular expressions containing nested unbounded quantifiers such as (?:(?:a|b)*)*. These patterns cause the V8 JavaScript engine to enter an exponential backtracking state when attempting to match certain non-matching inputs.

The vulnerability is particularly dangerous because it affects the default minimatch() API with no special options required. The minimum viable attack pattern is only 12 bytes (*(*(*(a|b)))), making exploitation trivially easy for attackers. This low barrier to entry combined with the severe performance impact makes this a significant denial of service vector for any application utilizing minimatch for glob pattern matching.

Root Cause

The root cause lies in how minimatch translates nested extglob quantifiers into JavaScript regular expressions. The *() and +() extglob constructs map to regex quantifiers that, when nested, create patterns with exponential time complexity. When the regex engine encounters these patterns with non-matching input, it attempts all possible matching combinations before concluding failure, resulting in catastrophic backtracking behavior that consumes excessive CPU resources.

Attack Vector

The attack exploits minimatch's glob-to-regex conversion by providing a crafted glob pattern containing nested quantifiers. An attacker can trigger this vulnerability through any application feature that accepts user-supplied glob patterns processed by minimatch.

The exploitation mechanism involves supplying a nested extglob pattern like *(*(*(a|b))) along with a carefully crafted non-matching input string. The regex engine's backtracking behavior causes CPU exhaustion, with processing time growing exponentially as nesting depth or input length increases. A simple 12-byte pattern with 18-byte input demonstrates 7+ seconds of blocking time, while slightly larger inputs can extend this to minutes, effectively freezing the application.

Detection Methods for CVE-2026-27904

Indicators of Compromise

  • Abnormally high CPU utilization in Node.js processes handling pattern matching operations
  • Application threads becoming unresponsive when processing glob patterns
  • Increased latency or timeouts in services utilizing minimatch for file matching
  • Log entries showing extended processing times for pattern evaluation operations

Detection Strategies

  • Monitor for incoming requests containing nested extglob patterns (*(, +() in user-supplied input fields
  • Implement application performance monitoring (APM) to detect sudden CPU spikes correlated with pattern matching operations
  • Use dependency scanning tools to identify vulnerable minimatch versions in your application dependencies
  • Deploy runtime protection that can detect and terminate excessive regex evaluation time

Monitoring Recommendations

  • Configure alerts for CPU usage thresholds on services utilizing minimatch
  • Implement request timeout monitoring for endpoints that process glob patterns
  • Review application logs for patterns indicating extended regex evaluation
  • Monitor package dependency updates for minimatch security patches

How to Mitigate CVE-2026-27904

Immediate Actions Required

  • Update minimatch to a patched version: 10.2.3, 9.0.7, 8.0.6, 7.4.8, 6.2.2, 5.1.8, 4.2.5, or 3.1.4
  • Audit applications to identify all direct and transitive dependencies on minimatch
  • Implement input validation to reject or sanitize glob patterns containing nested extglob constructs
  • Consider implementing timeouts for pattern matching operations as a defense-in-depth measure

Patch Information

Fixed versions have been released across all maintained branches. Refer to the GitHub Security Advisory for detailed patch information and upgrade guidance. The patches address the nested quantifier issue by modifying how extglob patterns are converted to regular expressions, preventing the generation of exponentially complex regex patterns.

Workarounds

  • Implement input validation to reject glob patterns with nested *() or +() constructs
  • Apply request timeouts to limit the impact of potential ReDoS attacks
  • Use allowlists for acceptable glob patterns rather than accepting arbitrary user input
  • Consider wrapping minimatch calls with timeout protection using worker threads
bash
# Update minimatch to patched version
npm update minimatch

# Or install a specific patched version
npm install minimatch@10.2.3

# Check installed version
npm list minimatch

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 Score7.5

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-1333
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-27903: minimatch DOS Vulnerability

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

  • 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