Skip to content

fix(security): bump prod deps off high/critical advisories (security-fast) - #69

Merged
convyusboy merged 2 commits into
boonfrom
security/audit-bumps-prod-advisories
Jul 23, 2026
Merged

convyusboy merged 2 commits into
boonfrom
security/audit-bumps-prod-advisories

Conversation

@convyusboy

@convyusboy convyusboy commented Jul 23, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

The CI security-fast job's "Audit production dependencies" step (scripts/pre-commit/pnpm-audit-prod.mjs) queries the live npm advisory database on every run. Nine newly-published high/critical advisories caught up to versions already resolved in the production dependency tree, so the job went red on every branch simultaneously — with no code change to blame (observed on run 29973799840 and earlier runs across unrelated branches like Dependabot and feature PRs).

Why This Change Was Made

The repo already has a "Security-audit bumps" overrides block in pnpm-workspace.yaml for exactly this situation. Several pins had gone stale (advisories caught up to the pinned versions) and two affected packages had no pin yet. This bumps all of them to patched versions:

Package Was Now Notes
axios 1.16.0 1.18.1 override
tar 7.5.16 7.5.20 7.5.21 is blocked by the minimumReleaseAge gate; 7.5.20 clears both advisories and is mature
fast-uri 3.1.2 3.1.4 override
linkify-it 5.0.1 5.0.2 override
brace-expansion 5.0.6 5.0.7 new override
@vitest/browser 4.1.9 4.1.10 forced the vitest toolchain (vitest, @vitest/coverage-v8, @vitest/browser-playwright) 4.1.8→4.1.10, since 4.1.10 peers [email protected] exactly
@opentelemetry/propagator-jaeger 2.8.0 2.9.0 new; required bumping the coupled @opentelemetry/core override 2.8.0→2.9.0

User Impact

None user-facing. Internal/CI only: unblocks security-fast so PRs stop failing on pre-existing advisories. Downstream effect: new PRs cut from boon after this merges inherit the patched lockfile automatically. Open PRs that predate the merge need a rebase to pick it up.

Evidence

  • The exact CI command now passes: node scripts/pre-commit/pnpm-audit-prod.mjs --audit-level=high → "No high or higher advisories found for production dependencies." exit 0 (was exit 1 with 9 findings).
  • All 7 packages resolve to patched versions in the lockfile; no vulnerable versions linger anywhere in the tree (grep-verified).
  • pnpm install completes clean (postinstall/hooks OK).
  • vitest 4.1.10 toolchain runs: test/scripts/pnpm-audit-prod.test.ts → 20/20 passing.

Note: this is a live-advisory gate, so it can go red again in the future if a new advisory is published against any prod dependency — that would be a fresh occurrence, not a regression of this fix.

🤖 Generated with Claude Code


Summary by cubic

Bumped production overrides to patched versions to clear nine new high/critical advisories and unblock the security-fast audit. Follow-up: synced the direct tar dep with the override, regenerated all shrinkwraps, and updated a test axios literal; CI security and consistency checks now pass.

  • Dependencies

    • axios 1.16.0 → 1.18.1
    • tar 7.5.16 → 7.5.20
    • fast-uri 3.1.2 → 3.1.4
    • linkify-it 5.0.1 → 5.0.2
    • brace-expansion → 5.0.7 (new override)
    • @opentelemetry/propagator-jaeger → 2.9.0 (new); @opentelemetry/core 2.8.0 → 2.9.0
    • @vitest/browser 4.1.9 → 4.1.10; aligned vitest and @vitest/coverage-v8 to 4.1.10
  • Migration

    • Rebase open branches to pick up the updated lockfiles.

Written for commit 617da7c. Summary will update on new commits.

Review in cubic

…fast)

Nine newly-published high/critical npm advisories caught up to versions
already resolved in the production dependency tree, turning the CI
security-fast 'Audit production dependencies' step red on every branch
with no code change to blame.

Bump the existing pnpm-workspace 'Security-audit bumps' overrides to
patched versions and add two missing pins:
- axios 1.16.0 -> 1.18.1
- tar 7.5.16 -> 7.5.20 (7.5.21 blocked by minimumReleaseAge gate)
- fast-uri 3.1.2 -> 3.1.4
- linkify-it 5.0.1 -> 5.0.2
- brace-expansion -> 5.0.7 (new)
- @vitest/browser 4.1.9 -> 4.1.10 (forces vitest toolchain to 4.1.10)
- @opentelemetry/propagator-jaeger -> 2.9.0 (new; requires core 2.9.0)

Verified: node scripts/pre-commit/pnpm-audit-prod.mjs --audit-level=high
now exits 0; vitest 4.1.10 toolchain runs (audit unit tests 20/20).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@claude

claude Bot commented Jul 23, 2026 •

Copy link
Copy Markdown

Claude encountered an error —— View job


I'll analyze this and get back to you.

@github-actions

github-actions Bot commented Jul 23, 2026 •

Copy link
Copy Markdown

Dependency Guard

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

Changed files:

  • extensions/acpx/npm-shrinkwrap.json
  • extensions/diagnostics-otel/npm-shrinkwrap.json
  • extensions/feishu/npm-shrinkwrap.json
  • extensions/llama-cpp/npm-shrinkwrap.json
  • extensions/lobster/npm-shrinkwrap.json
  • extensions/matrix/npm-shrinkwrap.json
  • extensions/msteams/npm-shrinkwrap.json
  • extensions/slack/npm-shrinkwrap.json
  • extensions/whatsapp/npm-shrinkwrap.json
  • npm-shrinkwrap.json
  • package.json
  • pnpm-lock.yaml
  • pnpm-workspace.yaml
  • ui/package.json

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 Jul 23, 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: 617da7c6ca15b7dfaf29a94f5e641aba3c59cec3
  • Trusted actor: @convyusboy
  • 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.

No issues found across 4 files

Re-trigger cubic

Follow-up to the prod-dep advisory bumps. Two CI checks failed:
- npm-managed-root.test.ts hardcoded axios: 1.16.0 -> update to 1.18.1
- package-manager-config shrinkwrap consistency check found stale
  @opentelemetry/core, brace-expansion, fast-uri, tar in npm-shrinkwrap

Bump the root direct tar dependency to 7.5.20 to match the override
(npm EOVERRIDE requires direct deps to match), then regenerate all
npm-shrinkwrap.json files via scripts/generate-npm-shrinkwrap.mjs --all.

Verified: shrinkwrap --all --check exits 0; audit exits 0;
both previously-failing tests pass (12/12, 27/27).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

@gandalfboon gandalfboon 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.

Clean, well-scoped security bump — approving.

Correctness

  • All 7 overrides are in-range minor/patch (no majors), matching the stated advisory targets.
  • tar synced consistently across the root override, direct package.json dep, and every shrinkwrap (required for npm EOVERRIDE); the 7.5.20-not-7.5.21 call (minimumReleaseAge gate) is sound.
  • @opentelemetry/core 2.9.0 propagated across every OTel snapshot with the coupled propagator-jaeger 2.9.0 bump; [email protected] correctly stays put and pulls core 2.9.0.
  • vitest toolchain forced to 4.1.10 as a set (browser/coverage/browser-playwright peer exactly on 4.1.10); stale 4.1.8/4.1.9 entries deduped cleanly.
  • axios 1.18.1 transitively adds [email protected] + [email protected] (both current, no advisory); test literal in npm-managed-root.test.ts updated to match.

Evidence — right shape for a dep bump: CI audit (pnpm-audit-prod.mjs --audit-level=high) exits 0, shrinkwrap --check passes, both previously-failing tests green, full CI green. No secrets, no code logic, no migration risk.

@convyusboy
convyusboy merged commit 2d3b2d8 into boon Jul 23, 2026
145 checks passed
@convyusboy
convyusboy deleted the security/audit-bumps-prod-advisories branch July 23, 2026 07:58
convyusboy added a commit that referenced this pull request Jul 23, 2026
Bump gateway + @openclaw/slack + @openclaw/msteams to 2026.6.11-boon.7 in
lockstep (package.json + npm-shrinkwrap.json roots) and add the CHANGELOG entry.
Ships the boon.7 train: #70 (ENG-16418 concise + A/B/C overlay for Claude),
#68 (ENG-16200 progress nudges runtime, gated off by default), #69 (security
dep bumps), #64 (ENG-16330 non-terminal recovered-tool-error badge).

Base = 2026.6.11-boon.6. Only slack + msteams carry the -boon.N suffix; other
extensions stay at plain 2026.6.11 (fork release does not run a blanket
plugins:sync). Formatting proof: oxfmt --check clean on CHANGELOG.md; the six
JSON files are oxfmt-excluded lockfile-class and byte-shape-identical to the
boon.6 release commit.

Co-authored-by: Claude Opus 4.8 (1M context) <[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.

1 participant