Skip to content

fix(deps): clear high-severity pnpm-audit-prod advisories - #302

Merged
convyusboy merged 3 commits into
boonfrom
ridho/fix-security-fast-pnpm-audit-advisories
Oct 21, 2026
Merged

convyusboy merged 3 commits into
boonfrom
ridho/fix-security-fast-pnpm-audit-advisories

Conversation

@convyusboy

@convyusboy convyusboy commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

CI's security-fast job (pnpm-audit-prod) was failing with 7 high-severity advisories in production dependencies, blocking every open PR, not just one branch's diff. Two of the flagged packages already had pnpm-workspace.yaml overrides, but those overrides were themselves pinned to vulnerable versions.

Why This Change Was Made

pnpm-lock.yaml regenerated via pnpm install --no-frozen-lockfile.

User Impact

No behavior change for users; this only moves transitive/direct dependency versions to patched releases to keep CI green and close real advisories in shipped production dependencies.

Evidence

Re-ran the exact security-fast audit step locally after the bump:

$ node scripts/pre-commit/pnpm-audit-prod.mjs --audit-level=high
No high or higher advisories found for production dependencies.

Original failure (for reference), from the ridho/eng-21588-boon-estimation-fee-loaded-label branch's security-fast run against this same base commit (8384739): https://github.com/getboon/openclaw/actions/runs/39550295764/job/119058123537

Confirmed a separate deps:shrinkwrap:changed:check warning about @sentry/node's nested @opentelemetry/resources/@opentelemetry/sdk-trace-base versions is pre-existing drift, unrelated to this change (reproduces identically against the unmodified base commit) and out of scope here.

🤖 Generated with Claude Code


Summary by cubic

Clears the 7 high-severity production dependency advisories that were failing the security-fast CI job and blocking every open PR. This bumps dependency versions to patched releases; no user-facing behavior changes.

Dependency Updates

  • Bumped @modelcontextprotocol/sdk from 1.31.0 to 1.32.1 in the root and the browser, codex-supervisor, qa-lab, and acpx extensions (the last via @zed-industries/codex-acp's transitive range).
  • Moved the follow-redirects override to 1.16.1 and the vite override to 8.1.6; both were pinned to versions inside the vulnerable ranges.
  • Added a markdown-it override at 14.3.3 (previously resolved to vulnerable 14.3.1); stays on the 14.x line.
  • Bumped the direct markdown-it pins in ui, markdown-core, oc-path, and matrix, plus the direct vite pin in ui, so npm-installed users get the fixes too.
  • Regenerated pnpm-lock.yaml and the root, acpx, feishu, matrix, msteams, and slack npm-shrinkwrap.json files.

Verification

  • pnpm-audit-prod.mjs --audit-level=high reports no high or higher advisories.
  • pnpm install --frozen-lockfile is clean and test/package-manager-config.test.ts passes.
  • Restored the root shrinkwrap's @opentelemetry entries to the lock graph's 2.11.0 versions so they don't drift from the pnpm lock.

Written for commit b0ad2e2. Summary will update on new commits.

View guided diff Turn on auto-fix

security-fast's pnpm-audit-prod step flags 7 high-severity advisories in
production dependencies:

- @modelcontextprotocol/sdk 1.31.0 (GHSA-22jm-h49p-29qw, GHSA-46jr-4wx8-v453)
  -> bump to 1.32.1 in root + browser/codex-supervisor/qa-lab extensions.
- follow-redirects override was pinned at 1.16.0, itself inside the
  vulnerable range (GHSA-q3jh-wrc6-jgq8, GHSA-8r9p-f939-6h3c) -> 1.16.1.
- vite override was pinned at 8.0.16, also inside the vulnerable range
  (GHSA-587h-7wmj-h5pm) -> 8.1.6.
- markdown-it had no override and resolved to 14.3.1
  (GHSA-gfr2-rv44-r23c, GHSA-r7fv-28h4-cvq7) -> add override at 14.3.3,
  staying on the 14.x line.

Regenerated pnpm-lock.yaml via pnpm install --no-frozen-lockfile.
Verified scripts/pre-commit/pnpm-audit-prod.mjs --audit-level=high now
reports no high or higher advisories.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@convyusboy
convyusboy requested a review from a team October 21, 2026 06:14
@github-actions

github-actions Bot commented Oct 21, 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/browser/package.json
  • extensions/codex-supervisor/package.json
  • extensions/feishu/npm-shrinkwrap.json
  • extensions/matrix/npm-shrinkwrap.json
  • extensions/matrix/package.json
  • extensions/msteams/npm-shrinkwrap.json
  • extensions/oc-path/package.json
  • extensions/qa-lab/package.json
  • extensions/slack/npm-shrinkwrap.json
  • npm-shrinkwrap.json
  • package.json
  • packages/markdown-core/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 Oct 21, 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: b0ad2e2c9ad103297bb0d6ca59afbea20f008408
  • 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.

All reported issues were addressed across 6 files

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

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

Comment thread pnpm-workspace.yaml Resolved
Comment thread pnpm-workspace.yaml Resolved
Comment thread package.json Resolved
convyusboy and others added 2 commits October 21, 2026 13:31
… fix

Addresses cubic review feedback on #302: the overrides-based pnpm-lock.yaml
regeneration left several direct manifests and publishable shrinkwraps
pinned to the vulnerable versions, so npm-installed users (and a
--frozen-lockfile install) wouldn't actually receive the fixes.

- ui/package.json, packages/markdown-core/package.json,
  extensions/oc-path/package.json, extensions/matrix/package.json:
  bump direct markdown-it pin 14.3.1 -> 14.3.3 to match the override.
- ui/package.json: bump direct vite pin 8.0.16 -> 8.1.6 to match the
  override.
- npm-shrinkwrap.json (root): regenerate so npm installs get
  @modelcontextprotocol/sdk 1.32.1 instead of the vulnerable 1.31.0.
- extensions/{feishu,msteams,slack}/npm-shrinkwrap.json: regenerate so
  npm-installed plugins get follow-redirects 1.16.1 instead of 1.16.0.
- extensions/matrix/npm-shrinkwrap.json: regenerate for the markdown-it
  bump.

Verified `pnpm install --frozen-lockfile` is clean (no stale-lockfile
error) and scripts/pre-commit/pnpm-audit-prod.mjs --audit-level=high
still reports no high-or-higher advisories.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
checks-node-core-tooling was failing on
test/package-manager-config.test.ts > keeps npm shrinkwrap package
versions inside the pnpm lock graph: the prior root npm-shrinkwrap.json
regeneration picked up an unrelated @sentry/node nested
@opentelemetry/resources / @opentelemetry/sdk-trace-base bump (2.11.0 ->
2.12.0) that the live npm registry now resolves to, but which isn't the
version pnpm-lock.yaml pins. Restored those two entries verbatim to the
2.11.0 metadata (exact hashes from the prior committed shrinkwrap),
keeping only the intended @modelcontextprotocol/sdk 1.31.0 -> 1.32.1
change.

Also found and fixed a second, separately-stale shrinkwrap the test
caught: extensions/acpx/npm-shrinkwrap.json pulls in
@modelcontextprotocol/sdk transitively via @zed-industries/codex-acp's
^1.29.0 range and was still locked to the vulnerable 1.31.0. Regenerated
it so npm installs of the acpx plugin get 1.32.1 too.

Verified test/package-manager-config.test.ts (all 12 tests) now passes,
`pnpm install --frozen-lockfile` is clean, and
pnpm-audit-prod.mjs --audit-level=high still reports no high-or-higher
advisories.

Co-Authored-By: Claude Sonnet 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.

Dependency Security Review and Approval

Reviewed Commit: b0ad2e2c9ad103297bb0d6ca59afbea20f008408

Verification Summary

  1. Scope and Files:
    • Changes are strictly manifests (package.json, pnpm-workspace.yaml) and lockfiles/shrinkwraps (pnpm-lock.yaml, npm-shrinkwrap.json). No application code modified.
  2. Advisory Resolutions and Pins:
  3. Lockfile and Registry Vetting:
    • All package downloads resolve strictly to https://registry.npmjs.org. Zero unvetted git or external URLs.
    • All 28 updated package resolution SHA-512 integrity hashes (@modelcontextprotocol/sdk, vite, rolldown, @emnapi/*, markdown-it, etc.) independently verified against npm registry tarball metadata.
    • No unexpected major version jumps; all pins remain on their active release branches.
  4. CI State:
    • 128 of 128 GitHub Actions check-runs completed green (0 failures) at head b0ad2e2c9ad103297bb0d6ca59afbea20f008408.

LGTM!

@convyusboy
convyusboy merged commit eaeead4 into boon Oct 21, 2026
131 checks passed
@convyusboy
convyusboy deleted the ridho/fix-security-fast-pnpm-audit-advisories branch October 21, 2026 12:42
convyusboy added a commit that referenced this pull request Oct 26, 2026
* fix(deps): clear high-severity pnpm-audit-prod advisories

security-fast's pnpm-audit-prod step flags 7 high/critical advisories in
production dependencies, newly disclosed since PR #302's last audit fix:

- dompurify 3.4.16 -> 3.4.17 (GHSA-cg2g-xh64-v4q7, GHSA-mrv2-3pqr-j5jr)
- undici 8.x line 8.10.2 -> 8.12.3, 7.x line 7.29.1 -> 7.30.1
  (GHSA-xjj6-f33q-929c, unhandled-error DoS on excessive content-encodings)
- zod 4.x line 4.4.3 -> 4.6.7 (GHSA-mrhx-c7xc-m3w5, oversized-collection
  memory exhaustion)
- body-parser (transitive via express) -> 2.4.0 override
  (GHSA-27r3-jxmh-p828, trailing-bytes DoS)
- @azure/msal-node (transitive via @azure/identity, msteams cert-auth)
  5.2.3 -> 7.1.1 scoped override (GHSA-xcx6-jx8p-x3h5, auth-code-flow
  parameter disclosure). This is a 2-major jump beyond what @azure/identity
  itself currently supports (its latest only tracks msal-node ^6.0.0, which
  is still inside the vulnerable range) -- needs live Teams cert-auth
  verification before this ships.

Also suppresses a false positive: GHSA-mrhx-c7xc-m3w5's published range
("< 4.6.6") is written against zod's v4-only $ZodArray/handleArrayResult
bug but also matches [email protected] (a2ui/web_core's pin, which predates the
v3->v4 rewrite entirely and never shipped that code path).

Regenerated pnpm-lock.yaml and the 26 affected npm-shrinkwrap.json files.
Manually reverted an unrelated @sentry/node -> @opentelemetry/{resources,
sdk-trace-base} registry-drift bump (2.11.0 -> 2.12.0) that the shrinkwrap
generator's live npm resolution picks up independent of this fix (same
class of drift as PR #302's third commit).

Verified scripts/pre-commit/pnpm-audit-prod.mjs --audit-level=high reports
no high-or-higher advisories, pnpm install --frozen-lockfile is clean, and
test/package-manager-config.test.ts plus test/scripts/pnpm-audit-prod.test.ts
pass.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* fix(config,deps): fix CI fallout from zod 4.4.3 -> 4.6.7 security bump

Two checks went red after the zod bump landed:

- checks-node-core-runtime-infra-process: zod 4.6.7's toJSONSchema() now
  collapses a union of two-or-more bare primitive types (e.g.
  z.union([z.string(), z.number()])) into the compact `type: ["string",
  "number"]` JSON Schema shorthand instead of `anyOf`. config-form union
  handling (Control UI and CLI form renderers) only recognizes `anyOf`/
  `oneOf` as a multi-type field, so fields like meta.lastTouchedAt,
  sandbox.docker.memory, and memorySwap would silently collapse to their
  first listed type in the UI, losing the other accepted type. Added
  expandMultiTypeUnions() in schema-base.ts to expand that shorthand back
  into an equivalent anyOf before it reaches any consumer. The common
  `[T, "null"]` nullable shape (exactly one non-null type) is left
  untouched -- that's already handled directly by existing nullable checks.

- checks-node-core-tooling: zod's own package added 21 new exports (14
  callable) between 4.4.3 and 4.6.7, all surfaced through
  src/plugin-sdk/zod.ts's `export * from "zod"` wildcard re-export. This
  pushed the plugin SDK surface past its hardcoded budgets in
  scripts/plugin-sdk-surface-report.mjs. Re-measured and bumped the
  affected budgets (publicExports, publicFunctionExports,
  publicDeprecatedExports, and the zod per-entrypoint deprecated budget)
  to the new real counts, following the same re-measure-and-bump pattern
  already documented in that file for the prior upstream-merge surface
  change.

Verified: src/config/schema.base.generated.test.ts (6/6), all of
src/config/ (161 files / 2018 tests), test/scripts/plugin-sdk-surface-
report.test.ts (7/7), ui/src/ui/views/config-form* suite, and
node scripts/plugin-sdk-surface-report.mjs --check now exits 0.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

---------

Co-authored-by: Claude Sonnet 5 <[email protected]>
convyusboy added a commit that referenced this pull request Oct 26, 2026
* chore(release): bump version 2026.6.35-boon.1 -> 2026.6.35-boon.2

Cuts the fork release covering the 9 PRs merged to boon since v2026.6.35-boon.1:
#298 (ENG-21265) stuck-generation cut-off retry + sub-agent spawn backstop,
#299 workspaceDir threading through outbound channel media adapters,
#304 (ENG-19208) real inbound media path in the system prompt,
#301 (ENG-21585) forced sessions_yield on narrated sub-agent turns,
#305 message-tool source reply observed outside message_tool_only,
#306 (ENG-19103) reasoning-stream callbacks honor message_tool_only,
#303 sub-agent/completion-turn usage attribution,
#302 clears 7 high-severity pnpm-audit-prod advisories,
#300 (ENG-21588) boon-estimation trajectory label detail.

Bump root package.json/npm-shrinkwrap.json, all bundled plugin manifests, and
the version + openclaw peer floor in every extension npm-shrinkwrap.json. Add
the 2026.6.35-boon.2 CHANGELOG.md section. No additional dependency or source
changes beyond what already shipped in #299 and #302.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* docs(changelog): fold PR #309's advisory fixes into the 2026.6.35-boon.2 entry

---------

Co-authored-by: Claude Sonnet 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.

3 participants