Repository navigation
fix(workspace): Patch vulnerable dependencies and workflow permissions (NS-2162) - #631
Conversation
Bump turbo, knip, vitest, vite, wrangler, hono and vocs, and add or raise pnpm overrides for vulnerable transitive dependencies.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
Caution Review failedThe pull request is closed. Walkthrough
Merge Risk:
|
Patches open Dependabot and CodeQL alerts (NS-2162). Only devDependencies, example apps, the
create-mini-apptemplate and rootpnpm.overrideschange. No published package's runtimedependencieschange, 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 patchedsmol-tomlandzod4)vitest+@vitest/coverage-v8^2.1.x → 4.1.12 inframe-core,frame-node,miniapp-core,miniapp-node(removes vulnerabletinypool,@vitest/mockerand vite 5 / esbuild 0.21)vite^6.3.6 → 6.4.5 inexamples/react-tsandexamples/vanillahono^4.13.0 → 4.13.14 andwrangler^4.4.0 → 4.156.0 inexamples/hono-backend(moves undici, sharp,@fastify/busboyto patched versions)vocslatest→ 1.4.1 insite(stays on 1.x; pulls patched@hono/node-server,compressionandimage-size, and dropsdeepmerge)create-mini-apptemplate:vite^5.2.11 → ^6.4.5 (kept as a range because this file is scaffolded into user projects)Overrides (root
pnpm.overrides)shell-quote@1^1.11.0,js-yaml@3^3.15.2,brace-expansion@1^1.1.21@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@1toml@3→ ^5.0.1. It is still CJS with the sameparseexport used by vocs andremark-mdx-frontmatter.uuid@8/uuid@9→ ^11.1.1. uuid 11 still ships a CJS build, and consumers (jayson, rpc-websockets,@metamask/*) only callv4/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/connectors5.8.3 pins 0.32.0 exactly.I tried an in-range
wagmi/@wagmi/corerefresh (2.15 → 2.19 / 2.17 → 2.22) first, but it breaksminiapp-wagmi-connectortype-checking (connector.tsprovider types). I reverted it in favour of the narrow@metamask/sdkoverride and left wagmi upgrades to #567.Code scanning
actions/missing-workflow-permissions(fix: ssr issues #1, looks like not support pc ? #2, Fix changeset #6, Add locationtype=notificationcontext #7, support Ethereum Provider events, preserve errors over the wire #8): added top-levelpermissions: contents: readtoverify.yml,pull-request.ymlandchangesets.yml. Thechangesetsjob keeps its existing job-levelcontents: write/id-token: write, and its publish steps useREPO_SCOPED_TOKEN.verify.ymlis a reusable workflow that only checks out, installs, lints, builds and tests, so read access is enough.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)
main)pnpm install --frozen-lockfilepnpm check(biome)pnpm build(17 tasks incl. site + examples)pnpm typecheck(30 tasks)pnpm testExtra checks:
create-mini-apptemplate, copied out and installed with npm, passestsc && vite buildon vite 6.4.5.examples/hono-backendwrangler deploy --dry-runfails on both base and this branch because the example imports@farcaster/quick-authbut does not declare it. That failure exists onmaintoo and is not caused by this PR.pnpm check:repo(sherif, not run in CI) already fails onmainfor multiple@types/react/@farcaster/quick-authversions.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:
decode-uri-component0.2.2 (Add .claude.json to .gitignore #237, chore: version packages #306): pulled in byquery-string@7.1.3←@walletconnect/utils(wagmi). The fixed 0.5.x is ESM-only andquery-string@7requires it. Only reachable in dev/example wallet code.image-size1.2.1 (chore: version packages #258, Default getEvmProvider to assuming supported if no getCapabilities #259): pulled in by react-nativemetro0.81/0.82, which is a devDependency of the RN host packages and is never run here (they only runtsc). The fix exists only in 2.x, whose API metro does not support.stream-json1.9.1 (switch setShareStateProvider related changeset from minor to patch #238, chore: version packages #282, [sdk] bump quick-auth version #283): pulled in byjayson@4.3.0(latest 4.x) ←@solana/web3.js. 3.x is ESM-only with renamed module paths, so an override would break jayson'srequire('stream-json/streamers/StreamValues').@solana/web3.jsuses jayson's browser client, which does not loadstream-json.zod3.22.4 / 3.25.76 (Add support for SignAndSendAllTransactions and avoid touching window global in SSR context #301): the advisory has no 3.x patch. zod 3 comes from@farcaster/quick-auth(latest 0.0.8 still requireszod@^3.25.1),abitypeand@reown/appkit-wallet. Closing it needs quick-auth to move to zod 4.Dismissal candidates (not dismissed): #258 and #259 (not reachable, dev-only metro), and #238, #282 and #283 (
stream-jsoncode path not loaded by@solana/web3.js).Superseded Dependabot PRs
These are not closed by this PR:
@babel/plugin-transform-modules-systemjs(now 7.29.8)@hono/node-server(now 1.19.17)mainalready resolves 7.18.2🤖 Generated with Claude Code
Summary by CodeRabbit