# CVE-2026-27903: minimatch has a ReDoS: matchOne() combinatorial backtracking via multiple non-adjacent GLOBSTAR segments

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.78% (percentile 53, 2026-11-26)
- **CWE:** CWE-407
- **Aliases:** GHSA-7r86-cg39-jmmj
- **Published:** 2026-02-26T01:06:32.856Z
- **Modified:** 2026-09-10T03:50:34.376Z

## Who should check

- Projects that depend on npm package minimatch (\>= 10.0.0, \< 10.2.3)
- Anyone running isaacs minimatch \>= 10.0.0, \< 10.2.3; \>= 9.0.0, \< 9.0.7; \>= 8.0.0, \< 8.0.6; \>= 7.0.0, \< 7.4.8; \>= 6.0.0, \< 6.2.2; \>= 5.0.0, \< 5.1.8; \>= 4.0.0, \< 4.2.5; \< 3.1.3

## 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.3, \`matchOne()\` performs unbounded recursive backtracking when a glob pattern contains multiple non-adjacent \`\*\*\` (GLOBSTAR) segments and the input path does not match. The time complexity is O(C(n, k)) -- binomial -- where \`n\` is the number of path segments and \`k\` is the number of globstars. With k=11 and n=30, a call to the default \`minimatch()\` API stalls for roughly 5 seconds. With k=13, it exceeds 15 seconds. No memoization or call budget exists to bound this behavior. Any application where an attacker can influence the glob pattern passed to \`minimatch()\` is vulnerable. The realistic attack surface includes build tools and task runners that accept user-supplied glob arguments (ESLint, Webpack, Rollup config), multi-tenant systems where one tenant configures glob-based rules that run in a shared process, admin or developer interfaces that accept ignore-rule or filter configuration as globs, and CI/CD pipelines that evaluate user-submitted config files containing glob patterns. An attacker who can place a crafted pattern into any of these paths can stall the Node.js event loop for tens of seconds per invocation. The pattern is 56 bytes for a 5-second stall and does not require authentication in contexts where pattern input is part of the feature. 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.3 fix the issue.

## Affected and fixed versions

- npm `minimatch`: affected \>= 10.0.0, \< 10.2.3; fixed 10.2.3, 9.0.7, 8.0.6, 7.4.8, 6.2.2, 5.1.8, 4.2.5, 3.1.3 (osv)
- isaacs minimatch: \>= 10.0.0, \< 10.2.3; \>= 9.0.0, \< 9.0.7; \>= 8.0.0, \< 8.0.6; \>= 7.0.0, \< 7.4.8; \>= 6.0.0, \< 6.2.2; \>= 5.0.0, \< 5.1.8; \>= 4.0.0, \< 4.2.5; \< 3.1.3 (cvelist)

## Mitigation

- Upgrade minimatch to one of 10.2.3, 9.0.7, 8.0.6, 7.4.8, 6.2.2, 5.1.8, 4.2.5, 3.1.3 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-27903. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-27903.md
Affected: minimatch >= 10.0.0, < 10.2.3
Fixed in: 10.2.3, 9.0.7, 8.0.6, 7.4.8, 6.2.2, 5.1.8, 4.2.5, 3.1.3

Steps:
1. Search this machine and project for minimatch (npm), isaacs minimatch: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-27903 being exploited?

There is no confirmed exploitation: CVE-2026-27903 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.78% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-27903?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-27903?

minimatch \>= 10.0.0, \< 10.2.3.

### Is there a fix for CVE-2026-27903?

Yes. Fixed in 10.2.3, 9.0.7, 8.0.6, 7.4.8, 6.2.2, 5.1.8, 4.2.5, 3.1.3. Upgrade minimatch to one of 10.2.3, 9.0.7, 8.0.6, 7.4.8, 6.2.2, 5.1.8, 4.2.5, 3.1.3 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-27903?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/isaacs/minimatch/security/advisories/GHSA-7r86-cg39-jmmj>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-27903>
- patch: <https://github.com/isaacs/minimatch/commit/0bf499aa45f5059b56809cc3b75ff3eafeb8d748>
- other: <https://github.com/isaacs/minimatch>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-27903>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-7r86-cg39-jmmj> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-27903> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-27903>
