Skip to content

fix: raise transitive minimatch to 11.x to clear its denial-of-service alert - #5494

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-5434
Nov 5, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-5434

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

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, declares minimatch: ^10.2.4. A scoped pnpm.overrides entry, 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, a promptfoo eval with the echo provider and a contains assertion passes, and minimatch("a/b.js", "**/*.js") resolves from promptfoo's directory to 11.0.4 and matches. pnpm run eval:legibility itself needs model credentials and was not run here.

When promptfoo moves to minimatch 11, the override can be dropped.

Closes #5434 — automated triage

…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
@leaf-agent
leaf-agent merged commit 0eee28f into main Nov 5, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5434 branch November 5, 2026 12:24
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clear the minimatch denial-of-service alert that Dependabot cannot update

1 participant