Skip to content

fix(deps): bump brace-expansion override to 5.0.9 for HIGH advisory 1130705 - #118804

Merged
steipete merged 2 commits into
mainfrom
fix/brace-expansion-advisory
Aug 3, 2026
Merged

steipete merged 2 commits into
mainfrom
fix/brace-expansion-advisory

Conversation

@steipete

@steipete steipete commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The security-fast gate is red on every PR (and will be on main) since GitHub advisory 1130705 published: HIGH severity DoS in brace-expansion >=4.0.0 <5.0.9 (unbounded intermediate arrays bypassing the CVE-2026-14257 mitigation). The repo pins brace-expansion at exactly 5.0.8 via the existing workspace override, which is inside the vulnerable range.

Why This Change Was Made

Bumps the existing exact-version override 5.0.8 → 5.0.9 (the patched release, published 2026-07-30) in both pnpm-workspace.yaml spots (override + minimum-release-age exclusion) and regenerates the lockfile. This is remediation of an already-established override, not a new override; exact-versions-only is preserved. Flagging per repo policy since it touches the workspace override surface — the alternative (leaving the gate red) blocks all landings.

User Impact

None functional; removes a HIGH DoS advisory from production dependencies.

Evidence

  • pnpm-lock.yaml resolves only [email protected]
  • Named-export surface unchanged (expand, EXPANSION_MAX, EXPANSION_MAX_LENGTH); runtime smoke: expand("a{1,2}") → ["a1","a2"]
  • Focused consumer suite (src/infra/exec-allowlist-pattern.test.ts) passes
  • Structured autoreview: clean (0.99) — bundle consistency across override, exclusion, and lockfile verified

🤖 Generated with Claude Code

Canonical CI-owner repair included

The first exact-head dependency workflow proved the security fix immediately: node scripts/pre-commit/pnpm-audit-prod.mjs --audit-level=high reported no high-or-higher advisories. Its sole remaining CI failure exposed the already diagnosed independent MCP 6-MiB pagination regression: synchronous page sizing exhausted a real 50-ms wall-clock deadline under runner load, so an otherwise valid second page was never requested.

To break the dependency ↔ MCP ↔ TUI CI cycle, this PR now also contains the already independently reviewed, project-owner-authored one-file MCP test repair from #118779. It freezes time only for the byte-budget regression and restores real timers in finally; production timeout behavior and independent timeout tests remain unchanged. The actual owner test passed 17/17 on the combined commit; previous formal reviews were clean (dependency 0.99; MCP test 0.98). Production-code delta from the MCP repair is zero.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 3, 2026
@steipete
steipete marked this pull request as ready for review August 3, 2026 17:35
@steipete
steipete requested a review from a team as a code owner August 3, 2026 17:35
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Aug 3, 2026
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Dependency Guard

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

Changed files:

  • pnpm-lock.yaml
  • pnpm-workspace.yaml

Maintainer follow-up:

  • Review whether the dependency changes are intentional.
  • Inspect resolved package deltas when lockfiles or workspace dependency policy changes are present.
  • Treat pnpm-lock.yaml and package-lock.json diffs as dependency 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 Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

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: b08b382e8b0723826252f1a0409812c652b61735
  • Trusted actor: @steipete
  • Trusted role: pull request author; openclaw-secops

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

@vincentkoc vincentkoc self-assigned this Aug 3, 2026
@clawsweeper

clawsweeper Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 1:40 PM ET / 17:40 UTC.

ClawSweeper review

What this changes

This PR updates OpenClaw’s existing exact brace-expansion workspace override and lockfile resolution from 5.0.8 to 5.0.9 for advisory remediation.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep this protected maintainer-labeled PR open for an explicit maintainer merge decision. Current main still pins brace-expansion 5.0.8; the branch makes the narrow, internally consistent 5.0.9 override, release-age-exception, and lockfile update, with the provided security-fast and dependency checks passing.

Priority: P1
Reviewed head: e7402f62be28163064be30fcbe3c7a3af8408a8b
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) This is a focused, net-neutral dependency remediation with aligned policy and lockfile changes plus positive supplied validation.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The PR body supplies a post-change expand("a{1,2}") runtime result and focused consumer-suite result, and the provided checks include successful real-behavior-proof and security-fast runs.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The PR body supplies a post-change expand("a{1,2}") runtime result and focused consumer-suite result, and the provided checks include successful real-behavior-proof and security-fast runs.
Evidence reviewed 5 items Current main remains on 5.0.8: The checked-out current main explicitly keeps both the minimum-release-age exclusion and exact override at brace-expansion 5.0.8, so this remediation is not already implemented.
Patch keeps dependency policy and lockfile aligned: The proposed commit updates the existing override, matching release-age exclusion, package resolution, snapshot, and the sole minimatch consumer reference from 5.0.8 to 5.0.9.
Current runtime dependency path: Current lockfile resolution makes [email protected] depend on brace-expansion, while current source imports minimatch in agent session and workspace pattern-handling paths.
Findings None None.
Security None None.

How this fits together

The pnpm workspace file centrally forces selected transitive dependency versions, and the lockfile records the package graph that OpenClaw installs. minimatch consumes brace-expansion for path-pattern matching used by agent workspace, session, and execution-allowlist flows.

flowchart LR
  A[Workspace dependency policy] --> B[Exact brace-expansion override]
  B --> C[pnpm lockfile resolution]
  C --> D[minimatch pattern matching]
  D --> E[Agent and execution path handling]
Loading

Decision needed

Question Recommendation
Does the dependency-policy owner approve merging this exact-version security remediation after the mergeable head’s required checks are current? Approve and merge the aligned update: Merge the existing 5.0.9 override after confirming required checks on the mergeable head remain green.

Why: The maintainer label requires explicit human handling for this dependency security change even though the patch is narrow and the supplied checks are positive.

Before merge

  • Resolve merge risk (P1) - The branch is behind current main; GitHub reports it cleanly mergeable, but required checks and the dependency graph should be evaluated at the mergeable head before landing.
Agent review details

Security

None.

PR surface

Config 0, Other 0. Total 0 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 1 2 2 0
Generated 0 0 0 0
Other 1 5 5 0
Total 2 7 7 0

Review metrics

Metric Value Why it matters
Dependency-policy alignment 1 override changed; 1 release-age exclusion changed Both policy entries change with the lockfile, preventing pnpm from resolving a version different from the intended security remediation.
Production versus tests production +7/-7; tests 0 The patch is a net-neutral dependency metadata update and introduces no production behavior code or test churn.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Merge the existing minimal 5.0.9 override after the protected maintainer review confirms the current-head required checks remain green; keep the override, release-age exception, and lockfile on the same exact version.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Merge the existing minimal 5.0.9 override after the protected maintainer review confirms the current-head required checks remain green; keep the override, release-age exception, and lockfile on the same exact version.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this is a dependency-advisory remediation rather than a user-facing runtime bug with a standalone reproduction path. The provided branch evidence includes a post-change expansion smoke result and a focused consumer test.

Is this the best way to solve the issue?

Yes: updating the existing exact override and its paired lockfile and release-age policy is the narrowest maintainable fix; it avoids adding a parallel dependency mechanism or changing application behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 03bec9d438bd.

Labels

Label changes:

  • add P1: Current main explicitly resolves the advisory-affected version, and the supplied context says the security gate is affected until this remediation lands.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body supplies a post-change expand("a{1,2}") runtime result and focused consumer-suite result, and the provided checks include successful real-behavior-proof and security-fast runs.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.

Label justifications:

  • P1: Current main explicitly resolves the advisory-affected version, and the supplied context says the security gate is affected until this remediation lands.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body supplies a post-change expand("a{1,2}") runtime result and focused consumer-suite result, and the provided checks include successful real-behavior-proof and security-fast runs.

Evidence

What I checked:

  • Current main remains on 5.0.8: The checked-out current main explicitly keeps both the minimum-release-age exclusion and exact override at brace-expansion 5.0.8, so this remediation is not already implemented. (pnpm-workspace.yaml:137, 03bec9d438bd)
  • Patch keeps dependency policy and lockfile aligned: The proposed commit updates the existing override, matching release-age exclusion, package resolution, snapshot, and the sole minimatch consumer reference from 5.0.8 to 5.0.9. (pnpm-lock.yaml:25, e7402f62be28)
  • Current runtime dependency path: Current lockfile resolution makes [email protected] depend on brace-expansion, while current source imports minimatch in agent session and workspace pattern-handling paths. (src/agents/sessions/model-resolver.ts:7, 03bec9d438bd)
  • Dependency policy provenance: The current 5.0.8 workspace policy dates to the dependency-policy introduction in the centralization commit; the same contributor authored the proposed 5.0.9 replacement. (pnpm-workspace.yaml:137, a6f9da8bdb65)
  • Provided CI and behavior evidence: The PR context records successful dependency guard, security-fast, and real-behavior-proof checks; its body also records a post-change expansion smoke result and focused allowlist-pattern test. (e7402f62be28)

Likely related people:

  • steipete: Git history attributes the current workspace dependency policy to this contributor, and the proposed remediation commit is also authored by them. (role: dependency-policy author and recent area contributor; confidence: high; commits: a6f9da8bdb65, e7402f62be28; files: pnpm-workspace.yaml, pnpm-lock.yaml)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Confirm required checks at the mergeable head before merging.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete

steipete commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

Note for the record: commit b08b382 (test(mcp): isolate oversized catalog proof from wall-clock timeouts) was pushed to this branch by a parallel session; it is test-only MCP flake hygiene riding this PR's landing. The dependency change remains exactly e7402f6.

@vincentkoc

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@steipete
steipete merged commit a67c526 into main Aug 3, 2026
125 of 131 checks passed
@steipete
steipete deleted the fix/brace-expansion-advisory branch August 3, 2026 18:01
@steipete

steipete commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

1 similar comment
@steipete

steipete commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 3, 2026
* origin/main: (25 commits)
  test(qa): cover plugin authoring contracts (#118821)
  fix(parallels): keep provider keys out of POSIX job logs (#118840)
  improve: reduce redundant Code Mode test work (#118815)
  fix(models): report primary OpenRouter limits in scans (#110855)
  test: speed up setup inference fixtures (#118811)
  fix(auto-reply): enforce canonical reset authorization (#118580)
  docs(gateway): fix invalid heartbeat visibility examples (#118827)
  fix(plugins): unify HTTP route conflict handling (#118203)
  test(agents): use prepared auth fixtures (#118816)
  fix(lmstudio): resolve JIT embedding variants
  fix(lmstudio): preserve embedding preload and model identity
  fix(ai): reject binary Codex websocket frames (#111138)
  fix(deps): bump brace-expansion override to 5.0.9 for HIGH advisory 1130705 (#118804)
  feat(cli): add session archive and delete commands (#118791)
  fix(openai): commit eligible final realtime transcription audio safely (#118782)
  fix(reef): restrict management commands to owners [AI] (#118578)
  fix(google): honor Cloud SDK credential location and Vertex billing project (#118745)
  fix(bedrock): preserve private embedding endpoints and AWS routing policy (#118744)
  fix(voice): make signed callback replay reservations durable and retryable (#118754)
  fix(openrouter): isolate custom proxy credentials and transport security (#118773)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 4, 2026
…130705 (openclaw#118804)

* fix(deps): bump brace-expansion override to 5.0.9 for advisory 1130705

* test(mcp): isolate oversized catalog proof from wall-clock timeouts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies-changed PR changes dependency-related files maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants