Repository navigation
chore(deps): update dependency minimatch to v11.0.10 [security] - #4424
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Contributor
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
11.0.8→11.0.10minimatch: Proto Key Bypasses Cache-Key Weighting in minimatch's Shared Matcher Cache
CVE-2026-141514 / GHSA-3924-r96c-gp9w
More information
Details
Summary
minimatch's module-global matcher cache can be poisoned by a
__proto__key in theoptionsobject passed tominimatch().optionsKey()scores that key the same as no options at all, whilecopyOptions()'s barefor...inloop 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,optionsKey()has nocase '__proto__', so it falls through todefaultand contributes weight0:src/index.ts:291-296,copyOptions()copies with a plain assignment, notObject.defineProperty, so__proto__runs through the real setter instead of landing as an own key:cachedMinimatch()(src/index.ts:298-323) then stores theMinimatchbuilt from the poisonedcopyOptions(options)under the keyoptionsKey(options)returns — the same key a later, option-less call will look up. Neither function has the one missing check that matters here: special-case__proto__before it reaches assignment.Proof of concept
Then, with no knowledge of the call above, a second, fully-trusted caller matches the same pattern with zero options:
Result
r2 = trueis the proof: a second, independent call with no options at all gets back the attacker's poisoned matcher. The untouched-pattern control staysfalse, andObject.prototypeitself is never touched — this is cache poisoning, not classic global prototype pollution.Impact
Any process that relies on the default, process-global
minimatch()cache to evaluate security-relevant patterns (allow/deny lists, package-name filters) loses the integrity of that decision the moment one code path buildsoptionsfrom untrusted JSON — README.md's own stated default, "compared case sensitively, unlessnocase:trueis set," breaks for a bystander caller. This is not remote code execution and not data disclosure — it's a single boolean match-outcome flip, scoped to the shared cache, that persists until the entry is evicted.Suggested Fix
Severity
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:NReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
Release Notes
isaacs/minimatch (minimatch)
v11.0.10Compare Source
v11.0.9Compare Source
Configuration
📅 Schedule: (in timezone Europe/Oslo)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.