CVE-2026-27904 Details
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.
A denial-of-service vulnerability has been identified in the Minimatch library, specifically in versions 10.0.0 prior to 10.2.3, 9.0.0 prior to 9.0.7, 8.0.0 prior to 8.0.6, 7.0.0 prior to 7.4.8, 6.0.0 prior to 6.2.2, 5.0.0 prior to 5.1.8, 4.0.0 prior to 4.2.5, and all versions through 3.1.3. The issue arises when nested `*()` and `+()` extglobs create regular expressions with unbounded quantifiers, leading to catastrophic backtracking in V8. This backtracking can be exploited to stall the Node.js event loop for an extended period, with the severity of the impact increasing with the depth of nesting and the length of the input.
Users can mitigate this vulnerability by updating to Minimatch 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. Applications that do not require extglob syntax should also pass the option `{ noext: true }` to the `minimatch()` function when handling untrusted patterns.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 26, 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.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/isaacs/minimatch/security/advisories/GHSA-23c5-xmqv-rm74 | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1333 | Inefficient Regular Expression Complexity | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| minimatch project minimatch | < 3.1.4 >= 4.0.0, < 4.2.5 >= 5.0.0, < 5.1.8 >= 6.0.0, < 6.2.2 >= 7.0.0, < 7.4.8 >= 8.0.0, < 8.0.6 >= 9.0.0, < 9.0.7 >= 10.0.0, < 10.2.3 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 27, 2026 | Initial Analysis | [email protected] |
| Feb 26, 2026 | New CVE Received | [email protected] |