Repository navigation
fix: raise transitive minimatch to 11.x to clear its denial-of-service alert - #5494
Merged
Merged
Conversation
…e alert promptfoo 0.125.1 (its latest release), glob 13.0.6 and @modelcontextprotocol/server-filesystem 2026.8.31 resolve minimatch 10.2.6, inside GHSA-g3hv-75wg-m249's vulnerable range (< 11.0.1), and Dependabot cannot move it because promptfoo declares ^10.2.4. A scoped pnpm override raises every minimatch below 11.0.1 to ^11.0.4 (resolving 11.0.4). promptfoo's only use is the named minimatch() export in its code scanner, which 11.x keeps; a promptfoo eval runs under the override. Closes #5434
This was referenced Nov 7, 2026
leaf-agent
added a commit
that referenced
this pull request
Nov 13, 2026
…abot alert (#5912) Raises the transitive `@hono/node-server` from 2.1.5 to 2.1.8 with a scoped `pnpm.overrides` entry (`@hono/node-server@<2.1.6` → `^2.1.6`). That clears Dependabot alert [#105](https://github.com/max-sixty/leaf/security/dependabot/105) (GHSA-jpvv-r467-5p4w, medium, vulnerable `>= 2.0.0, < 2.1.6`, patched in 2.1.6). Dependabot can't open this PR itself: its update run [43344359036](https://github.com/max-sixty/leaf/actions/runs/43344359036) failed with `security_update_not_possible` (latest resolvable 2.1.5). `[email protected]`, still its latest release, pins `@hono/node-server` at exactly `2.1.5`. The package's other user, `@modelcontextprotocol/[email protected]`, already accepts `^2.0.5`. Both are development-scope (the evals), so nothing Leaf ships or runs at install time changes. The override follows the `minimatch` one from #5494. `pnpm install --lockfile-only` changed only that package's entries in `pnpm-lock.yaml`. The override moves promptfoo three patch versions past its pin. A smoke test of 2.1.8's `serve()` with `[email protected]`, the version in the lock, answered a request with 200. `pnpm run eval:*` needs model credentials and was not run. The override can be dropped once promptfoo moves past 2.1.5. Co-authored-by: leaf-agent <[email protected]>
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.
Dependabot alert #103 (GHSA-g3hv-75wg-m249, minimatch denial of service, patched in 11.0.1) can't be fixed by Dependabot because
[email protected], its latest release, declaresminimatch: ^10.2.4. A scopedpnpm.overridesentry,minimatch@<11.0.1→^11.0.4, now raises every vulnerable copy; the lockfile's three users of[email protected](promptfoo,[email protected],@modelcontextprotocol/[email protected]) resolve 11.0.4, and 10.2.6 is gone from the lock. All three are development-scope.The override is one major version past promptfoo's declared range. promptfoo's only import of minimatch is the named
minimatch()export in its code scanner (dist/src/scanner-*.js), which 11.x keeps. Under the override, apromptfoo evalwith theechoprovider and acontainsassertion passes, andminimatch("a/b.js", "**/*.js")resolves from promptfoo's directory to 11.0.4 and matches.pnpm run eval:legibilityitself needs model credentials and was not run here.When promptfoo moves to minimatch 11, the override can be dropped.
Closes #5434 — automated triage