fix(deps): clear all 206 pnpm audit vulnerabilities (2 crit, 78 high,105 mod, 21 low)#577
Merged
Conversation
… 105 mod, 21 low)
Resolves every advisory reported by `pnpm audit` (206 -> 0). Approach:
fix at the proper source (workspace direct-dep bumps) wherever possible;
use `pnpm.overrides` only for transitives whose parent SDK is already at
its latest published version (i.e. truly upstream-stuck).
Direct-dep bumps (the bulk of fixes):
- docs/: next 16.1.6->16.2.6, fumadocs-{core,mdx,ui} 16.6.5->16.9.1,
posthog-js ^1.358->^1.376, openai ^6.22->^6.39, postcss ^8.5.6->^8.5.15;
toc subpath import fix required by fumadocs-ui bump.
- 11 Next.js example apps: next 16.1.6 -> 16.2.6 (+ matching
eslint-config-next), openai -> ^6.39.0.
- examples/openui-react-native/backend: next ^15.2.3 -> ^15.5.18.
- examples/openui-react-native/chat-app: expo ~54.0.6 -> ~54.0.34.
- examples/svelte-chat: vite -> ^6.4.2, @sveltejs/kit -> ^2.61.1,
@sveltejs/vite-plugin-svelte -> ^5.1.1, svelte -> ^5.55.9,
@ai-sdk/svelte 3.x -> ^4.0.191 (major), @ai-sdk/openai -> ^3.0.65,
ai -> ^6.0.191.
- examples/vue-chat: nuxt ^3.17 -> ^3.21.6, @ai-sdk/vue -> ^3.0.191,
@ai-sdk/openai -> ^3.0.65, ai -> ^6.0.191.
- examples/mastra-chat: @ag-ui/core ^0.0.45->^0.0.53, @ag-ui/mastra
^1.0.1->^1.0.2.
- examples/{multi-agent-chat,vercel-ai-chat}: @ai-sdk/react ^3.0.118
->^3.0.193, @ai-sdk/openai -> ^3.0.65, ai -> ^6.0.191 (fixes
UIMessage type incompatibility from coexisting ai majors).
- examples/openui-artifact-demo: react-syntax-highlighter ^15.6
->^16.1.1.
- examples/hands-on-table-chat: switched 4 @openuidev/* deps from
published ^0.x versions to workspace:* (every other example uses
workspace links; aligns this one); handsontable + react-wrapper
17.0.1 -> 17.1.0.
- examples/supabase-chat: @supabase/ssr ^0.5->^0.10.3,
@supabase/supabase-js ^2.49->^2.106.2 (clears ws CVE).
- packages/react-ui: storybook + 11 @storybook/* addons ^8.5.3
->^8.6.18; vite ^5->^6.4.2; webpack ^5.104.1 added as direct devDep
(forces pnpm to hoist non-vulnerable webpack for
@storybook/addon-styling-webpack peer); react-syntax-highlighter
15->^16.1.1 (fixes prismjs); lodash-es ^4.17.21->^4.18.1;
@typescript-eslint/eslint-plugin ^8.56->^8.59.4; @types/node-fetch
2.6.11->2.6.13; form-data ^4.0->^4.0.5; postcss spec ^8.5.1->^8.5.15;
tailwindcss ^3 -> ^3.4.19.
- packages/svelte-lang: vite ^6->^6.4.2, vitest ^3->^3.2.4, svelte
^5->^5.55.9, @sveltejs/vite-plugin-svelte ^5->^5.1.1, jsdom
^26->^29.1.1.
- packages/vue-lang: @vitejs/plugin-vue ^5->^6.0.7 (major),
@vue/test-utils ^2.4->^2.4.10, vite ^6->^6.4.2, vitest ^3->^3.2.4,
jsdom ^26->^29.1.1.
- packages/{lang-core,react-lang}: vitest ^4.0.18->^4.1.7.
- packages/browser-bundle: esbuild ^0.24->^0.25.12.
- Root: @typescript-eslint/eslint-plugin ^8.56->^8.59.4; tsdown
^0.21.7->^0.22.0 (newer rolldown internals dropped a huge vulnerable
transitive chain).
`pnpm.overrides` block (6 entries, each truly upstream-stuck):
- langsmith@<0.6.0 deep inside @copilotkit/runtime via @ag-ui/mastra
(latest). RSS deserialization fix.
- ip-address@<10.1.1 via @modelcontextprotocol/sdk@1.29.0 (latest),
@mastra/core@1.15.0 (latest), @ag-ui/mastra
(latest). XSS in Address6 HTML emitters.
- postcss@<8.5.10 bundled as postcss@8.4.31 inside next@16.2.6
(latest stable; only 16.3 canaries exist).
XSS via unescaped </style>.
- qs@<6.15.2 via @mastra/core (latest), @ag-ui/mastra (latest).
DoS via comma-format TypeError.
- uuid@<11.1.1 via @ag-ui/mastra (latest), expo@~54.0.34
(latest in major), @storybook/addon-essentials
8.6.18 (latest 8.x; Storybook 8 is EOL).
Buffer bounds check.
- cookie@<0.7.0 via @sveltejs/kit@2.61.1 (latest), which pins
cookie@^0.6.0. OOB chars in cookie name/path.
Each override is removable when the named upstream parent ships a
patch.
Final audit: 0 critical / 0 high / 0 moderate / 0 low.
`pnpm install --frozen-lockfile` passes (CI-mode install). All
Next.js example builds verified. svelte-chat build verified after
@ai-sdk/svelte major bump. vue-chat builds clean on CI Linux; fails
locally on darwin-arm64 due to a pre-existing pnpm 9 + oxc-walker
native-bindings bug (unrelated to this change — same failure on main).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
… and update pnpm-lock.yaml accordingly
…ck.yaml to resolve compatibility issues and vulnerabilities
Resolve conflicts by adopting main's pnpm catalog (#612): - svelte-lang / vue-lang: take "jsdom": "catalog:" (^26.1.0) - regenerate pnpm-lock.yaml combining the catalog with the audit-fix dependency bumps (vitest ^4.1, next 16.2.7, prismjs >=1.30.0, @ai-sdk/provider-utils override ^4.0.27) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Resolve pnpm-lock.yaml conflict: regenerate with pnpm 9.15.9 so the lockfile reflects main's pnpm catalog (#612) together with the audit-fix dependency bumps (vitest ^4.1, next 16.2.7, prismjs >=1.30.0, @ai-sdk/provider-utils override ^4.0.27). Validated with `pnpm install --frozen-lockfile`. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Resolve conflicts preserving audit-fix dependency bumps alongside main's changes: - browser-bundle: keep esbuild ^0.25.12 (CVE fix) + main's rimraf ^5.0.7 (build needs it) - react-ui: keep vite ^6.4.2 + webpack ^5.104.1 (CVE fixes) + main's rimraf ^5.0.7 - pnpm-lock.yaml: regenerate (pnpm 9.15.9) combining main's catalog with the audit fixes (vitest ^4.1, next 16.2.7, prismjs >=1.30.0, @ai-sdk/provider-utils ^4.0.27) Verified: pnpm audit clean, react-headless 70/70 tests pass on vitest 4.1.7, react-ui + browser-bundle build successfully. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
ankit-thesys
approved these changes
Jun 9, 2026
ankit-thesys
left a comment
Contributor
There was a problem hiding this comment.
Verified pnpm audit, and it looks Good
All the functionality is checked along with examples
pr description is stale
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves every advisory reported by
pnpm audit(206 -> 0). Approach: fix at the proper source (workspace direct-dep bumps) wherever possible; usepnpm.overridesonly for transitives whose parent SDK is already at its latest published version (i.e. truly upstream-stuck).Direct-dep bumps (the bulk of fixes):
pnpm.overridesblock (6 entries, each truly upstream-stuck):(latest). RSS deserialization fix.
@mastra/core@1.15.0 (latest), @ag-ui/mastra
(latest). XSS in Address6 HTML emitters.
(latest stable; only 16.3 canaries exist).
XSS via unescaped </style>.
DoS via comma-format TypeError.
(latest in major), @storybook/addon-essentials
8.6.18 (latest 8.x; Storybook 8 is EOL).
Buffer bounds check.
cookie@^0.6.0. OOB chars in cookie name/path.
Each override is removable when the named upstream parent ships a patch.
Final audit: 0 critical / 0 high / 0 moderate / 0 low.
pnpm install --frozen-lockfilepasses (CI-mode install). All Next.js example builds verified. svelte-chat build verified after @ai-sdk/svelte major bump. vue-chat builds clean on CI Linux; fails locally on darwin-arm64 due to a pre-existing pnpm 9 + oxc-walker native-bindings bug (unrelated to this change — same failure on main).What
Describe the change and why it is needed.
Changes
Test Plan
Describe how you validated this change.
Checklist