
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-141514 is a cache poisoning vulnerability in the minimatch npm package (a glob-to-RegExp matching utility for JavaScript) that allows an attacker to corrupt the module-global matcher cache by passing an options object containing an own __proto__ property to minimatch(). This causes later, unrelated callers using the same pattern with default options to receive the poisoned matcher — for example, one that performs case-insensitive matching — potentially flipping security-relevant allow or deny decisions. Affected versions are >= 11.0.6 and < 11.0.10; the issue is fixed in version 11.0.10. It carries a CVSS v3.1 base score of 3.7 (Low) (GitHub Advisory).
The root cause is classified as CWE-1321 (Improperly Controlled Modification of Object Prototype Attributes). Three functions in src/index.ts interact defectively: optionsKey() (lines 229–234) has no case '__proto__' branch, so a __proto__ key contributes weight 0 and produces the same cache key as a default (no-options) call; copyOptions() (lines 291–296) uses a plain for...in loop with bare assignment, causing copy['__proto__'] = value to invoke the real prototype setter rather than creating an own property, thereby re-parenting the copy's prototype; and cachedMinimatch() (lines 298–323) stores the resulting Minimatch object under the default-options cache key. The fix (commit 1c11986) changes copyOptions() to use Object.create(null) as the base and skips the __proto__ key, and introduces a shared noOptions sentinel so option-less calls are keyed consistently (GitHub Advisory, Fix Commit).
Successful exploitation allows an attacker to alter the boolean outcome of glob pattern matching for any subsequent caller that uses the same pattern string with default options, within the same Node.js process, until the cache entry is evicted. The primary risk is integrity: security-relevant allow/deny list decisions (e.g., package-name filters, file access controls) can be silently flipped from the expected result. There is no confidentiality impact (no data disclosure), no availability impact (no denial of service), and the attack does not modify Object.prototype globally — the effect is strictly scoped to the shared module-level matcher cache (GitHub Advisory).
A proof-of-concept (PoC) exploit is publicly available in the GitHub Security Advisory, demonstrating the two-call sequence that reproduces the flipped match result using the payload JSON.parse('{"__proto__":{"nocase":true}}'). There is no evidence of in-the-wild exploitation at this time. The NVD SSVC assessment classifies exploitation as "poc" and the attack as non-automatable, reflecting the high attack complexity requirement: an attacker must control a code path that passes an options object derived from untrusted JSON to minimatch(), and a separate trusted call must use the same pattern string. The EPSS score is 0.0 and the vulnerability is not listed in the CISA KEV catalog (GitHub Advisory).
minimatch versions 11.0.6–11.0.9 and has a code path where attacker-controlled JSON is parsed and passed (directly or indirectly) as the options argument to minimatch().__proto__ property: const smuggled = JSON.parse('{"__proto__":{"nocase":true}}').minimatch(file, patternLower, smuggled). Internally, optionsKey(smuggled) returns 0 (the default key) because __proto__ has no weight; copyOptions(smuggled) re-parents the copy's prototype to {nocase: true}; cachedMinimatch() stores this case-insensitive matcher under the default cache key for patternLower.minimatch(file, patternLower) with no options. It looks up the default cache slot for patternLower, retrieves the poisoned case-insensitive matcher, and returns true for a file that should not match (e.g., 'FOO-....TXT' against 'foo-....txt').minimatch versions >= 11.0.6 and <= 11.0.9 in package.json or package-lock.json; identifiable via npm list minimatch or npm audit.true results from minimatch() calls with default options on patterns previously matched case-sensitively; observable via application-level logging of glob match outcomes.__proto__ key reaching endpoints that feed options into minimatch() calls (GitHub Advisory).Upgrade minimatch to version 11.0.10 or later, which fixes copyOptions() to use Object.create(null) and skip the __proto__ key, preventing cache slot collision. As an interim measure: audit all code paths that pass externally influenced objects as options to minimatch() and sanitize or reject any options object containing a __proto__ key before it reaches the call. Restarting affected Node.js processes clears the poisoned cache entry immediately. Review any allow/deny logic relying on glob matching for signs of unexpected case-insensitive matches (GitHub Advisory, Fix Commit).
The vulnerability was reported by researcher waydeshi and credited in the GitHub Security Advisory. The advisory was published by the package maintainer (isaacs) on November 30, 2026, with a patch released the same day. No significant broader media coverage or notable public researcher commentary beyond the advisory itself has been identified at this time (GitHub Advisory).
Fix availability across major Linux distributions and their releases.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."