cvelo
P2 · HighCVSS 8.7EPSS 0.8%

minimatch: Quadratic compile time for long wildcard patterns (regression in 11.0.0 `mergeRows`)

  • CVE-2026-140008
  • GHSA-cf2h-pxjq-68xw
  • EUVD-2026-139733

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.

Text from the CVE.org record.

Recommendation

No source states a fixed version. Check the vendor advisory.

Affected

  • isaacs minimatch

    Affected versionsFixed in
    >= 11.0.0, < 11.0.7none stated
  • minimatchnpm

    Affected versionsFixed in
    from 11.0.0 up to 11.0.6none stated

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.