Skip to content

build: bump glob 14.0.3 / minimatch 11.0.3 (CVE-2026-118773 / -118764, ENG-22080) - #322

Closed
william-antoline-boon wants to merge 2 commits into
boonfrom
eng-22080-glob-minimatch
Closed

william-antoline-boon wants to merge 2 commits into
boonfrom
eng-22080-glob-minimatch

Conversation

@william-antoline-boon

@william-antoline-boon william-antoline-boon commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Bumps glob 13.0.6 → 14.0.3 and minimatch 10.2.5 → 11.0.3 to clear CVE-2026-118773 (glob, fixed in 14.0.2) and CVE-2026-118764 (minimatch, fixed in 11.0.1). Amazon Inspector reports both as Medium on every paid boon-agent host (/usr/lib/node_modules/openclaw) and on the boon-agent-signup-container image. Linear: ENG-22080.

This replaces Dependabot #319 and #320. Neither one could have worked:

Changes

File Change
package.json glob 14.0.3, minimatch 11.0.3
extensions/file-transfer/package.json minimatch 11.0.3
pnpm-workspace.yaml override minimatch 11.0.3, new override glob 14.0.3, brace-expansion 5.0.11 → 5.0.12 (the floor minimatch 11 requires), with CVE comments
pnpm-lock.yaml refreshed with pnpm install --lockfile-only, using the pinned pnpm 11.2.2
npm-shrinkwrap.json same versions, plus path-scurry 2.0.2 → 3.0.0 and the new @isaacs/nonrecursive-glob-match 1.0.3

Compatibility

All three callers use only the basic API, which both new majors keep: minimatch(path, pattern, opts) in file-transfer/src/shared/policy.ts, agents/sessions/model-resolver.ts and agents/sessions/package-manager.ts, and globSync(entry, {cwd, absolute, dot, nodir}) in package-manager.ts. The removed APIs (makeRe, Minimatch#regexp, AST, debug, glob's Pattern/walker internals, and ignore patterns starting with /) aren't used anywhere in the fork. The other dependents, @tufjs/models and cacache, are dev-only and also use only the basic calls.

Differential test, minimatch 10.2.5 vs 11.0.3: every string literal from policy.test.ts, model-resolver.test.ts, package-manager.test.ts and extensions/loader.test.ts, plus extra edge cases (trailing slashes, extglobs, **/.., ~ paths, Windows backslashes), was run as both pattern and path under the three option sets the callers use ({dot: true}, {}, {nocase: true}).

  • 42,846 comparisons. The only differences are 6 edge cases I added myself, all the documented 11.0 change: a trailing-slash path like a/b/ no longer matches a/b/?(x) or a/b/*(x). No input from the real tests changes.
  • In the file-transfer policy, this only affects an extglob-only pattern tested against a bare directory path that ends in /.
  • globSync with package-manager.ts's options: 24 patterns against a fixture tree, identical results.

Test plan

  • pnpm install --lockfile-only with pnpm 11.2.2 resolves cleanly, and the lockfile diff is only these packages.
  • npm install --package-lock-only resolves the five changed shrinkwrap entries to the same version and integrity, leaving one glob (14.0.3) and one minimatch (11.0.3) in the shipped tree.
  • Differential test, as above.
  • Not run locally: the full unit suite, typecheck and check-dependency-pins. The full install didn't fit on my disk, so I'm relying on CI.
  • After merge, include this in the next fork release (along with the ENG-22031 tar work if it's ready), roll it with fleet-upgrade.sh (canary first), and rebuild boon-agent-signup-container. Then confirm Inspector no longer lists glob 13.0.6 or minimatch 10.2.5 under openclaw.

Note: global npm 11.21.1 on the hosts bundles its own minimatch 10.2.5 / glob 13.0.6, and so does npm 12.2.1. Inspector keeps one record per package version per host, so those 158 host records are risk-accepted in Vanta until npm ships a fixed bundle. This PR clears our copy, so the records close as soon as npm does. The 2 container-image records should close outright once the image is rebuilt.

No release or version bump in this PR.

🤖 Generated with Claude Code


Summary by cubic

Bumps glob 13.0.6 → 14.0.3 and minimatch 10.2.5 → 11.0.3, clearing CVE-2026-118773 and CVE-2026-118764 (Medium, Amazon Inspector on paid hosts and the boon-agent-signup-container image; ENG-22080).

  • Adds a glob 14.0.3 override in pnpm-workspace.yaml and raises brace-expansion to 5.0.12 so dev-only cacache can't keep a 13.0.6 copy.
  • Removes the stale [email protected] entry from minimumReleaseAgeExclude, since nothing resolves 5.0.9 anymore (override is now 5.0.12).
  • Picks 11.0.3 over 11.0.4: 11.0.4 is inside the two-day minimumReleaseAge window.
  • Replaces Dependabot build(deps): bump minimatch from 10.2.5 to 11.0.1 in /extensions/file-transfer #319 and build(deps): bump glob from 13.0.6 to 14.0.2 #320, which failed because the workspace override pinned minimatch back and Dependabot can't pass dependency-guard.
  • All callers use only the basic minimatch(path, pattern, opts) and globSync calls; a 42,846-case differential test found only the documented 11.0 trailing-slash edge case, which no current input hits.
  • Lockfile and shrinkwrap regenerated with pinned pnpm 11.2.2 and npm's own package resolution.
  • Rollout after merge: fork release, fleet-upgrade.sh (canary first), rebuild the signup container image. npm's own bundled copies stay risk-accepted until npm ships fixed versions.

Written for commit 75b091b. Summary will update on new commits.

View guided diff Turn on auto-fix

… -118764, ENG-22080)

Amazon Inspector flags glob 13.0.6 and minimatch 10.2.5 (Medium) on every
paid boon-agent host and on the boon-agent-signup-container image. Both
come from this fork: root dependencies, the workspace overrides, and
extensions/file-transfer.

- package.json: glob 13.0.6 -> 14.0.3, minimatch 10.2.5 -> 11.0.3
- extensions/file-transfer/package.json: minimatch 10.2.5 -> 11.0.3
- pnpm-workspace.yaml: override minimatch 10.2.5 -> 11.0.3, add glob
  14.0.3, raise brace-expansion 5.0.11 -> 5.0.12 (minimatch 11's floor)
- pnpm-lock.yaml: pnpm 11.2.2 --lockfile-only
- npm-shrinkwrap.json: same versions, entries from npm's own resolution

minimatch 11.0.3 rather than 11.0.4: 11.0.4 is inside the 2-day
minimumReleaseAge window. Both are past the 11.0.1 fix.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

Dependency Guard

This PR changes dependency-related files. Maintainers should confirm these changes are intentional.

Changed files:

  • extensions/file-transfer/package.json
  • npm-shrinkwrap.json
  • package.json
  • pnpm-lock.yaml
  • pnpm-workspace.yaml

Maintainer follow-up:

  • Review whether the dependency changes are intentional.
  • Inspect resolved package deltas when lockfile, shrinkwrap, or workspace dependency policy changes are present.
  • Treat package-lock.json and npm-shrinkwrap.json diffs as security-review surfaces.
  • Run pnpm deps:changes:report -- --base-ref origin/main --markdown /tmp/dependency-changes.md --json /tmp/dependency-changes.json locally for detailed release-style evidence.

@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Dependency graph changes noted

This PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin or a member of @openclaw/openclaw-secops.

  • Current SHA: 75b091bcd57479f0d0f7b143e60da84bdb54eaee
  • Trusted actor: @william-antoline-boon
  • Trusted role: pull request author; repository admin

Security review is still recommended before merge when the dependency graph change is intentional.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 5 files

Heads up: you’re close to your included review allowance. Set a flex budget so reviews don’t pause.

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread pnpm-workspace.yaml Resolved
Comment thread pnpm-workspace.yaml Resolved
- Drop the Linear ticket ID from the new override comments; keep the CVE
  and package rationale.
- Remove the stale [email protected] minimumReleaseAgeExclude entry:
  nothing resolves 5.0.9 anymore (override is now 5.0.12).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@boon-hermes-bot boon-hermes-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Security & Dependency Review: APPROVE

Reviewed head commit: 75b091bcd57479f0d0f7b143e60da84bdb54eaee

1. Manifest & Lockfile Scope

  • The diff touches manifests and lockfiles exclusively across 5 files: package.json, extensions/file-transfer/package.json, pnpm-workspace.yaml, pnpm-lock.yaml, and npm-shrinkwrap.json.
  • Resolves CVE-2026-118773 (glob, fixed in 14.0.2) via [email protected] and CVE-2026-118764 (minimatch, fixed in 11.0.1) via [email protected] (ENG-22080).
  • Properly pins overrides in pnpm-workspace.yaml (glob: 14.0.3, minimatch: 11.0.3, brace-expansion: 5.0.12), preventing dev dependencies like cacache from pulling unpatched versions. Stale [email protected] release-age exclusion cleanly dropped.

2. Registry & Integrity Vetting

All added and updated packages were vetted directly against registry.npmjs.org:

3. Breaking Change / Call Site Compatibility

Audited all repo call sites:

  • extensions/file-transfer/src/shared/policy.ts: standard minimatch(target, pattern, { dot: true }).
  • src/agents/sessions/package-manager.ts: standard minimatch(...) and globSync(entry, { cwd, absolute, dot, nodir }).
  • src/agents/sessions/model-resolver.ts: standard minimatch(..., { nocase: true }).
    No deprecated or removed APIs (makeRe, Minimatch#regexp, AST, debug, etc.) are consumed.

4. Commit Signatures & CI Status

  • Head commit 75b091bcd57479f0d0f7b143e60da84bdb54eaee is unsigned by author; noted non-blocking as GitHub signs squash-merges.
  • Full CI suite at head is all green (123 check runs, 0 failures, dependency-guard passed).

william-antoline-boon added a commit that referenced this pull request Nov 3, 2026
… -118764, ENG-22080)

Amazon Inspector flags glob 13.0.6 and minimatch 10.2.5 (Medium) on every
paid boon-agent host and on the boon-agent-signup-container image. Both
come from this fork: root dependencies, the workspace overrides, and
extensions/file-transfer.

- package.json: glob 13.0.6 -> 14.0.3, minimatch 10.2.5 -> 11.0.3
- extensions/file-transfer/package.json: minimatch 10.2.5 -> 11.0.3
- pnpm-workspace.yaml: override minimatch 10.2.5 -> 11.0.3, add glob
  14.0.3, raise brace-expansion 5.0.11 -> 5.0.12 (minimatch 11's floor),
  drop the now-unused [email protected] minimumReleaseAgeExclude entry
- pnpm-lock.yaml: pnpm 11.2.2 --lockfile-only
- npm-shrinkwrap.json: same versions, entries from npm's own resolution

minimatch 11.0.3 rather than 11.0.4: 11.0.4 is inside the 2-day
minimumReleaseAge window. Both are past the 11.0.1 fix.

Signed re-creation of #322 (eb1c05e + 75b091b), same tree.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@william-antoline-boon

Copy link
Copy Markdown
Collaborator Author

Superseded by #323: the same change as one signed (Verified) commit, because boon requires signed commits and this PR's commits were unsigned. Its tree is byte-identical to this PR's head 75b091b. The review feedback here is already applied there.

william-antoline-boon added a commit that referenced this pull request Nov 3, 2026
… -118764, ENG-22080) (#323)

Amazon Inspector flags glob 13.0.6 and minimatch 10.2.5 (Medium) on every
paid boon-agent host and on the boon-agent-signup-container image. Both
come from this fork: root dependencies, the workspace overrides, and
extensions/file-transfer.

- package.json: glob 13.0.6 -> 14.0.3, minimatch 10.2.5 -> 11.0.3
- extensions/file-transfer/package.json: minimatch 10.2.5 -> 11.0.3
- pnpm-workspace.yaml: override minimatch 10.2.5 -> 11.0.3, add glob
  14.0.3, raise brace-expansion 5.0.11 -> 5.0.12 (minimatch 11's floor),
  drop the now-unused [email protected] minimumReleaseAgeExclude entry
- pnpm-lock.yaml: pnpm 11.2.2 --lockfile-only
- npm-shrinkwrap.json: same versions, entries from npm's own resolution

minimatch 11.0.3 rather than 11.0.4: 11.0.4 is inside the 2-day
minimumReleaseAge window. Both are past the 11.0.1 fix.

Signed re-creation of #322 (eb1c05e + 75b091b), same tree.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants