Skip to content

fix(workspace): Patch vulnerable dependencies and workflow permissions (NS-2162) - #631

Merged
topocount merged 2 commits into
mainfrom
kjs/ns-2162-security-alerts
Oct 30, 2026
Merged

topocount merged 2 commits into
mainfrom
kjs/ns-2162-security-alerts

Conversation

@topocount

@topocount topocount commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Patches open Dependabot and CodeQL alerts (NS-2162). Only devDependencies, example apps, the create-mini-app template and root pnpm.overrides change. No published package's runtime dependencies change, so there is no changeset.

Dependency bumps

Direct (devDependencies / examples, pinned exact)

  • turbo ^2.3.3 → 2.11.10 (root)
  • knip ^5.41.1 → 5.88.1 (root; pulls patched smol-toml and zod 4)
  • vitest + @vitest/coverage-v8 ^2.1.x → 4.1.12 in frame-core, frame-node, miniapp-core, miniapp-node (removes vulnerable tinypool, @vitest/mocker and vite 5 / esbuild 0.21)
  • vite ^6.3.6 → 6.4.5 in examples/react-ts and examples/vanilla
  • hono ^4.13.0 → 4.13.14 and wrangler ^4.4.0 → 4.156.0 in examples/hono-backend (moves undici, sharp, @fastify/busboy to patched versions)
  • vocs latest → 1.4.1 in site (stays on 1.x; pulls patched @hono/node-server, compression and image-size, and drops deepmerge)
  • create-mini-app template: vite ^5.2.11 → ^6.4.5 (kept as a range because this file is scaffolded into user projects)

Overrides (root pnpm.overrides)

  • Raised existing floors: shell-quote@1 ^1.11.0, js-yaml@3 ^3.15.2, brace-expansion@1 ^1.1.21
  • Same-major floors: @babel/core@7, browserslist@4, baseline-browser-mapping@2, dompurify@3, estree-util-value-to-estree@3, lodash-es@4, mdast-util-to-hast@13, mermaid@11, nanoid@3, node-forge@1 (^1.4.2), picomatch@4, playwright@1, postcss@8, rollup@4, source-map-js@1
  • Cross-major, checked for API compatibility:
    • toml@3 → ^5.0.1. It is still CJS with the same parse export used by vocs and remark-mdx-frontmatter.
    • uuid@8/uuid@9 → ^11.1.1. uuid 11 still ships a CJS build, and consumers (jayson, rpc-websockets, @metamask/*) only call v4/v1.
    • mermaid>katex → ^0.18.2. The docs site does not render mermaid or math.
    • @wagmi/connectors>@metamask/sdk → 0.33.1. This is the 0.x minor bump; @wagmi/connectors 5.8.3 pins 0.32.0 exactly.

I tried an in-range wagmi/@wagmi/core refresh (2.15 → 2.19 / 2.17 → 2.22) first, but it breaks miniapp-wagmi-connector type-checking (connector.ts provider types). I reverted it in favour of the narrow @metamask/sdk override and left wagmi upgrades to #567.

Code scanning

No application code changed, so this PR adds no new tests. The existing suite before and after the change is the regression check.

Verification (Node 24, matching CI; pnpm 10.11.1)

Step Base (main) This branch
pnpm install --frozen-lockfile pass pass
pnpm check (biome) pass pass
pnpm build (17 tasks incl. site + examples) pass pass
pnpm typecheck (30 tasks) pass pass
pnpm test pass (miniapp-core 85, miniapp-node 16 + 1 skipped) pass (same counts, on vitest 4.1.12)

Extra checks:

  • The create-mini-app template, copied out and installed with npm, passes tsc && vite build on vite 6.4.5.
  • examples/hono-backend wrangler deploy --dry-run fails on both base and this branch because the example imports @farcaster/quick-auth but does not declare it. That failure exists on main too and is not caused by this PR.
  • pnpm check:repo (sherif, not run in CI) already fails on main for multiple @types/react / @farcaster/quick-auth versions.

Alerts

Before: 174 open Dependabot alerts and 5 open code-scanning alerts.

I matched every alert's vulnerable range against the new lockfile and manifests, and re-ran trivy to confirm. I expect 166 Dependabot alerts and all 5 code-scanning alerts to close.

Remaining (8), with no compatible upstream fix:

Dismissal candidates (not dismissed): #258 and #259 (not reachable, dev-only metro), and #238, #282 and #283 (stream-json code path not loaded by @solana/web3.js).

Superseded Dependabot PRs

These are not closed by this PR:

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated and standardized tooling versions across the project, examples, and starter templates.
    • Adjusted permissions for automated repository workflows.
    • Refreshed supporting package configuration.

Bump turbo, knip, vitest, vite, wrangler, hono and vocs, and add or
raise pnpm overrides for vulnerable transitive dependencies.
@vercel

vercel Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
miniapps-docs Ready Ready Preview Oct 30, 2026 11:41am UTC

Request Review

@changeset-bot

changeset-bot Bot commented Oct 30, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 778203c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Caution

Review failed

The pull request is closed.

Walkthrough

Three GitHub Actions workflows declare read-only contents permissions. Package manifests pin or update dependency versions, including Vitest, Vite, and root-level overrides.

Changes: Workflow Permissions

Layer / File(s) Summary
Declare workflow contents permissions
.github/workflows/changesets.yml, .github/workflows/pull-request.yml, .github/workflows/verify.yml
The three workflows declare contents: read permissions.

Dependency Versions

Layer / File(s) Summary
Update root dependencies and overrides
package.json
knip and turbo are pinned to exact versions. Existing overrides are updated, and overrides for additional packages are added.
Pin Vitest packages
packages/frame-core/package.json, packages/frame-node/package.json, packages/miniapp-core/package.json, packages/miniapp-node/package.json
Each manifest pins vitest and @vitest/coverage-v8 to version 4.1.12.
Update example and site dependencies
examples/hono-backend/package.json, examples/react-ts/package.json, examples/vanilla/package.json, packages/create-mini-app/templates/default/package.json, site/package.json
The manifests update Hono, Wrangler, and Vite versions. The site manifest pins vocs to 1.4.1.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Suggested reviewers: warplet

Merge Risk: Low · up to 77820

The dependency upgrade narrows supported Node versions without updating the repository contract. CI remains compatible, but developer environments on Node 23 or early Node 22 may receive engine warnings.

Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@topocount
topocount merged commit 6883e96 into main Oct 30, 2026
8 of 9 checks passed
@topocount
topocount deleted the kjs/ns-2162-security-alerts branch October 30, 2026 11:47

This branch was successfully deployed

1 active deployment
Preview — 778203cc Deployed Oct 30, 2026 by vercel[bot]
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.

1 participant