fix(deps): remediate dependency security vulnerabilities (165→44, 4 critical→0) - #3403
Merged
Conversation
Reduce `bun audit` findings from 165 (4 critical / 58 high) to 44 (0 critical / 17 high) by bumping direct deps and adding root overrides for transitive ones. bun.lock regenerated via `bun install`. Direct bumps (vulnerable instance was the direct dep): - better-auth 1.4.22 -> ^1.6.13 (CVE-2026-53512, CVSS 9.1 OAuth refresh-token replay; mcp/oidcProvider plugin is enabled in apps/api) - next ->^16.2.6 (middleware/proxy bypass, SSRF, DoS) - axios ->^1.16.0 (proxy-auth credential leak, prototype pollution) - vitest ->^3.2.6, vite ->^6.4.3, turbo ->^2.10.5 Root overrides for transitive vulns (backcompat-safe versions only): axios, vitest/@vitest/{coverage-v8,ui}, form-data, ws, semver, hono, @hono/node-server, multer, systeminformation, tmp, dompurify, ip-address, postcss, prismjs, qs, effect, protobufjs, linkify-it, mermaid, shell-quote, vite. undici intentionally NOT overridden: discord.js/@discordjs/rest pin undici@6 and use its internals; forcing v7 would break them at runtime. Verified: all production/source code typechecks clean across every workspace. Remaining typecheck errors are pre-existing .spec.ts test debt on main (unchanged source + unchanged jest/@types/node/trigger). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
3 tasks
claudfuen
pushed a commit
that referenced
this pull request
Jul 15, 2026
# [3.102.0](v3.101.2...v3.102.0) (2026-07-15) ### Bug Fixes * **ci:** pin Syft 1.46.0 in SBOM action (1.42.3 can't parse bun.lock) ([#3415](#3415)) ([5f47024](5f47024)) * **ci:** scan bun.lock via file: input so the SBOM isn't empty ([#3414](#3414)) ([e47e6fd](e47e6fd)) * **deps:** override uuid to ^11.1.1 (Dependabot [#85](#85)) ([#3418](#3418)) ([598ff8c](598ff8c)) * **deps:** patch tmp and js-yaml in mcp-server (Dependabot [#58](https://github.com/trycompai/comp/issues/58)/[#59](https://github.com/trycompai/comp/issues/59)/[#71](https://github.com/trycompai/comp/issues/71)) ([#3412](#3412)) ([59a6b0f](59a6b0f)) * **deps:** remediate dependency security vulnerabilities ([#3403](#3403)) ([7577a37](7577a37)) * **deps:** remediate dependency security vulnerabilities (165→16, 4 critical→0) ([#3406](#3406)) ([d403e9c](d403e9c)) * **device-agent:** implement the installer-cleanup fix ([#3381](#3381)) ([0f7581b](0f7581b)) * **security:** prevent SSRF in task-automation enterprise API calls ([#3411](#3411)) ([dcec288](dcec288)), closes [#116](#116) * **security:** resolve open CodeQL alerts (XSS, sanitization, workflow perms) ([#3419](#3419)) ([32329be](32329be)), closes [#108](#108) [js/xss-throu#dom](https://github.com/js/xss-throu/issues/dom) [#95](#95) [84/#85](#85) ### Features * **framework-editor:** raise requirement description limit to 100,000 chars (FRAME-2) ([67c9f4a](67c9f4a))
Contributor
|
🎉 This PR is included in version 3.102.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
Summary
Remediates dependency security vulnerabilities across the monorepo. Reduces
bun auditfindings from 165 (4 critical / 58 high) to 44 (0 critical / 17 high) — every finding that is safely fixable is fixed; the rest are documented residuals (multi-major breakage risk or no upstream fix).bun.lockwas regenerated withbun install(no hand-editing).What changed
Direct bumps (the vulnerable instance was the direct dep):
mcp()/oidcProviderplugin is enabled inapps/apiserver.fs.denybypassRoot
overridesfor transitive vulns (backcompat-safe versions only):axios,vitest/@vitest/{coverage-v8,ui},form-data,ws,semver,hono,@hono/node-server,multer,systeminformation,tmp,dompurify,ip-address,postcss,prismjs,qs,effect,protobufjs,linkify-it,mermaid,shell-quote,vite.Verified fixes (independently confirmed — CVE, CVSS, EPSS, reachability)
mcp/oidcProviderlive with confidential client (auth.server.ts:560)concurrently)@vitest/uiwas the stragglerResiduals (intentionally NOT changed — 44 findings remain)
All are transitive dev/build-chain (DoS/ReDoS, low real-world risk) or cannot be forced without breaking a runtime consumer:
discord.js/@discordjs/restpinundici@6and use its internals; forcing v7 would break them. Affected 7.25.0 is via@vercel/sandbox(not imported); no SOCKS5 usage.2.2.2/6.2.1in dev/build chains (electron-builder, node-gyp); forcing v7 breaks v2/v6 API consumers.Verification
turbo typecheck).framework-editorerrors were stale@trycompai/uidist — cleared after rebuild.@trycompai/appcompletes a full Next.js production build with the new deps..spec.tstest debt onmain— proven: this PR changes 0 source files and 0 test files (only 9package.json+bun.lock), and the deps behind those errors (jest,@types/node,trigger.dev) are byte-identical tomain.Test plan
discord.jsnotifications still work (undici left at v6 deliberately)🤖 Generated with Claude Code
Summary by cubic
Reduces security findings by upgrading dependencies and adding safe root overrides across the monorepo.
bun auditgoes from 165 (4 critical / 58 high) to 44 (0 critical / 17 high).Dependencies
better-auth^1.6.13,next^16.2.6,axios^1.16.0,vitest^3.2.6,vite^6.4.3,turbo^2.10.5.overridespull fixed versions, includingvitest/@vitest/{coverage-v8,ui}^3.2.7,systeminformation^5.31.17,dompurify^3.4.12,protobufjs^7.6.3,mermaid^11.15.0, plusform-data,ws,multer,shell-quote,vite, and more.undici@6left as-is to avoid breakingdiscord.jsconsumers.bun.lockviabun install; no source file changes.Migration
bun installand build as usual.better-auth1.4→1.6).undici@6).Written for commit 02f16e5. Summary will update on new commits.