← Vulnerabilities

LowAdvisoryJavaScript / Node.js

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

Affected

PackageAffected versionsFixed in
npm:minimatch>= 11.0.6, <= 11.0.911.0.10

minimatch's module-global matcher cache can be poisoned by a __proto__ key in the options object passed to minimatch(). optionsKey() scores that key the same as no options at all, while copyOptions()'s bare for...in loop re-parents its copy onto the attacker's prototype instead of copying it as an own property — one caller doing this is enough to flip the cached matcher's case-sensitivity for every later, unrelated caller matching the same pattern string. Details src/index.ts:229-234, optionsKe…

Read on GitHub Advisory Database

On 12/05/2026, 06:52 AM, GitHub Advisory Database published "minimatch: Proto Key Bypasses Cache-Key Weighting in minimatch's Shared Matcher Cache" (type: Advisory). Severity is "Low" (low). Related technologies: JavaScript / Node.js. CVE: CVE-2026-141514.