# CVE-2026-140008: minimatch: Quadratic compile time for long wildcard patterns (regression in 11.0.0 `mergeRows`)

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Published: 2026-11-30T21:36:50.135Z
- Modified: 2026-12-01T18:15:04.050Z
- Also known as: GHSA-cf2h-pxjq-68xw
- Weaknesses: CWE-407
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

minimatch is a minimal matching utility for converting glob expressions into JavaScript RegExp objects. From 11.0.0 until 11.0.7, mergeRows() in src/index.ts repeatedly copies and joins an entire pattern row while iterating each wildcard position, causing quadratic compilation time for long wildcard-only path patterns even when only one row exists. An attacker who can supply uncached patterns to new Minimatch or another compiling entry point can block the JavaScript event loop and cause a denial of service, with brace-generated rows further multiplying the work. This issue is fixed in version 11.0.7.

(As written by CVE List.)

## Affected

- isaacs minimatch: >= 11.0.0, < 11.0.7
- minimatch (npm): from 11.0.0 before 11.0.7

## Every score

- GitHub_M: CVSS:4.0 8.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/isaacs/minimatch/security/advisories/GHSA-cf2h-pxjq-68xw> (web)
- <https://github.com/isaacs/minimatch/commit/8a26917fa43e2b865dd6017f7acf6ac2fd5190cd> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-140008> (advisory)
- <https://github.com/isaacs/minimatch> (package)

## Sources

- CVE List: [CVE-2026-140008](https://www.cve.org/CVERecord?id=CVE-2026-140008), CVE Terms of Use, modified 2026-12-01
- GitHub Advisory Database: [GHSA-cf2h-pxjq-68xw](https://github.com/advisories/GHSA-cf2h-pxjq-68xw), CC-BY-4.0, modified 2026-12-01
- NVD: [CVE-2026-140008](https://nvd.nist.gov/vuln/detail/CVE-2026-140008), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-140008 · Whole record: https://cve.day/CVE-2026-140008.json · Rebuilt by cve.day 2026-12-01T18:27:24.791Z
