Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-27904: CWE-1333: Inefficient Regular Expression Complexity in isaacs minimatch

0
High
VulnerabilityCVE-2026-27904cvecve-2026-27904cwe-1333
Published: Thu Feb 26 2026 (02/26/2026, 01:07:42 UTC)
Source: CVE Database V5
Vendor/Project: isaacs
Product: minimatch

Description

minimatch is a minimal matching utility for converting glob expressions into JavaScript RegExp objects. Prior to version 10.2.3, 9.0.7, 8.0.6, 7.4.8, 6.2.2, 5.1.8, 4.2.5, and 3.1.4, nested `*()` extglobs produce regexps with nested unbounded quantifiers (e.g. `(?:(?:a|b)*)*`), which exhibit catastrophic backtracking in V8. With a 12-byte pattern `*(*(*(a|b)))` and an 18-byte non-matching input, `minimatch()` stalls for over 7 seconds. Adding a single nesting level or a few input characters pushes this to minutes. This is the most severe finding: it is triggered by the default `minimatch()` API with no special options, and the minimum viable pattern is only 12 bytes. The same issue affects `+()` extglobs equally. Versions 10.2.3, 9.0.7, 8.0.6, 7.4.8, 6.2.2, 5.1.8, 4.2.5, and 3.1.4 fix the issue.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/05/2026, 10:04:33 UTC

Technical Analysis

The vulnerability CVE-2026-27904 in the isaacs minimatch library stems from inefficient regular expression complexity (CWE-1333) caused by nested unbounded quantifiers generated from nested extglob patterns such as `*()` and `+()`. Minimatch converts glob expressions into JavaScript RegExp objects, but prior to versions 10.2.3, 9.0.7, 8.0.6, 7.4.8, 6.2.2, 5.1.8, 4.2.5, and 3.1.4, nested extglobs produce regex patterns with nested quantifiers like `(?:(?:a|b)*)*`. When these regexes are processed by the V8 engine, they cause catastrophic backtracking, severely degrading performance. For example, a 12-byte pattern `*(*(*(a|b)))` with an 18-byte non-matching input can cause minimatch() to stall for over 7 seconds, and adding more nesting or input length can extend this to minutes. This denial-of-service condition arises without requiring any special options or user interaction, making it trivially exploitable in environments where minimatch processes untrusted input. The issue is fixed in the specified patched versions. No known exploits have been observed in the wild, but the vulnerability poses a significant risk to applications relying on minimatch for pattern matching, especially in server-side JavaScript contexts or build tools.

Potential Impact

This vulnerability can lead to denial-of-service (DoS) attacks by causing applications using vulnerable minimatch versions to hang or become unresponsive when processing crafted glob patterns. The impact is primarily on availability, as the CPU resources are consumed excessively due to catastrophic regex backtracking. This can disrupt services, degrade performance, and potentially cause cascading failures in systems that rely on minimatch for file matching, configuration parsing, or input validation. Since minimatch is widely used in Node.js ecosystems, including build tools, package managers, and server-side applications, the scope of affected systems is broad. Attackers can exploit this vulnerability remotely without authentication or user interaction by supplying malicious input to affected APIs. Although no data confidentiality or integrity impact is reported, the availability impact can be severe, especially in high-load or critical environments.

Mitigation Recommendations

The primary mitigation is to upgrade all instances of the minimatch library to the fixed versions: 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 and above. Organizations should audit their software dependencies to identify and update vulnerable minimatch versions. Additionally, implement input validation and sanitization to restrict or reject complex nested extglob patterns that could trigger catastrophic backtracking. Where possible, limit the size and complexity of glob patterns accepted from untrusted sources. Employ runtime monitoring to detect unusually high CPU usage or long processing times in pattern matching functions. Consider isolating or sandboxing components that perform glob matching to minimize impact on critical systems. Finally, maintain an inventory of software components and monitor for updates or patches related to minimatch and its dependent projects.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-02-24T15:19:29.718Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 699fa148b7ef31ef0b7796b6

Added to database: 2/26/2026, 1:26:32 AM

Last enriched: 3/5/2026, 10:04:33 AM

Last updated: 4/12/2026, 7:56:39 AM

Views: 68

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses