CVE-2026-26996 Details
Description
minimatch is a minimal matching utility for converting glob expressions into JavaScript RegExp objects. Versions 10.2.0 and below are vulnerable to Regular Expression Denial of Service (ReDoS) when a glob pattern contains many consecutive * wildcards followed by a literal character that doesn't appear in the test string. Each * compiles to a separate [^/]*? regex group, and when the match fails, V8's regex engine backtracks exponentially across all possible splits. The time complexity is O(4^N) where N is the number of * characters. With N=15, a single minimatch() call takes ~2 seconds. With N=34, it hangs effectively forever. Any application that passes user-controlled strings to minimatch() as the pattern argument is vulnerable to DoS. This issue has been fixed in version 10.2.1.
A Regular Expression Denial-of-Service (ReDoS) vulnerability exists in minimatch versions prior to 10.2.0. The issue arises when a glob pattern includes multiple consecutive '*' wildcards followed by a literal character that is not present in the test string. Each '*' wildcard is translated into a separate '[^/]*?' regex group. When the match fails, this causes V8's regex engine to backtrack exponentially across all possible splits, leading to significant performance degradation. The vulnerability can be exploited in any application that allows user-controlled strings to be passed to the minimatch() function as the pattern argument.
Users can upgrade to minimatch version 10.2.1 or later to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1333 | Inefficient Regular Expression Complexity | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| minimatch project minimatch | >= 3.0.0, < 3.1.3 >= 4.0.0, < 4.2.4 >= 5.0.0, < 5.1.7 >= 6.0.0, < 6.2.1 >= 7.0.0, < 7.4.7 >= 8.0.0, < 8.0.5 >= 9.0.0, < 9.0.6 >= 10.0.0, < 10.2.1 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 6, 2026 | Reanalysis | [email protected] |
| Feb 20, 2026 | Initial Analysis | [email protected] |
| Feb 20, 2026 | New CVE Received | [email protected] |