cvelo
P4 · InfoCVSS 3.7EPSS 0.6%

minimatch: Proto Key Bypasses Cache-Key Weighting in minimatch's Shared Matcher Cache

  • CVE-2026-141514
  • GHSA-3924-r96c-gp9w
  • EUVD-2026-140722

Description

minimatch is a minimal matching utility for converting glob expressions into JavaScript RegExp objects. From 11.0.6 until 11.0.10, minimatch's module-global matcher cache can be poisoned when an options object passed to minimatch() contains an own proto property. In src/index.ts, optionsKey() assigns that property no cache-key weight while copyOptions() copies it into a normal object, changing the copy's prototype, and cachedMinimatch() stores the resulting matcher in the cache slot used by default options. A later independent caller matching the same pattern without options can therefore receive attacker-influenced behavior, such as case-insensitive matching, which can alter security-relevant allow or deny decisions until the entry is evicted. The effect is scoped to the shared matcher cache and does not modify Object.prototype. This issue is fixed in version 11.0.10.

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.6, < 11.0.10none stated
  • minimatchnpm

    Affected versionsFixed in
    from 11.0.6 up to 11.0.9none stated

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.