Skip to content

[dev] [Marfuen] mariano/security-dependency-upgrades-2 - #3405

Closed
github-actions[bot] wants to merge 3 commits into
mainfrom
mariano/security-dependency-upgrades-2
Closed

[dev] [Marfuen] mariano/security-dependency-upgrades-2#3405
github-actions[bot] wants to merge 3 commits into
mainfrom
mariano/security-dependency-upgrades-2

Conversation

@github-actions

@github-actions github-actions Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

This is an automated pull request to merge mariano/security-dependency-upgrades-2 into dev.
It was created by the [Auto Pull Request] action.


Summary by cubic

Upgrade dependencies across the monorepo to patch security vulnerabilities and cut bun audit findings from 165 to 16. No functional changes expected.

  • Dependencies
    • Upgraded: better-auth -> ^1.6.13, next -> ^16.2.6, axios -> ^1.16.0, @browserbasehq/stagehand -> ^3.7.0, @nestjs/swagger -> ^11.4.5, vitest -> ^3.2.6, vite -> ^6.4.3, turbo -> ^2.10.5.
    • Added root overrides to force patched transitives (e.g., axios, ws, semver, postcss, qs, dompurify, hono/@hono/node-server, multer, protobufjs, markdown-it) and pinned @tiptap/* to 3.22.1 for compatibility.
    • Removed unused dev deps: gitmoji, semantic-release-discord, semantic-release-discord-notifier.
    • Regenerated bun.lock.

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

Review in cubic

Marfuen and others added 3 commits July 14, 2026 09:54
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>
Follow-up to the initial security pass. Clears the safely-fixable
residuals so bun audit drops from 44 to 16 (0 critical / 10 high /
3 moderate / 3 low). All changes stay within declared version ranges.

Dead-dep removal (unused, referenced by no script):
- gitmoji -> cascade-drops request, tough-cookie@2.5.0, tar@2.2.2,
  node-gyp@3.8.0
- semantic-release-discord + -notifier -> drops discord.js/@discordjs/rest
  (which pinned undici@6 and blocked patching it)

Parent bumps:
- @browserbasehq/stagehand ^3.2.1/^3.0.5 -> ^3.7.0 (drops langchain +
  langsmith entirely)
- @nestjs/swagger ^11.2.0 -> ^11.4.5 (pulls patched js-yaml 4.3.0)

Overrides (backcompat-safe, verified):
- @opentelemetry/core ^2.8.0, @sigstore/core 3.2.1, markdown-it ^14.3.0,
  @babel/core ^7.29.7
- @tiptap/* pinned 3.22.1 (lockstep — the lockfile refresh floated the
  transitive @tiptap/* to 3.27.4, incompatible with @tiptap/react 3.22.1)

Lockfile refresh floats the remaining stale transitives to patched
in-range versions: undici 6.27.0/7.28.0, js-yaml 3.15.0/4.3.0,
brace-expansion, minimatch (non-bundled copies), @sigstore/verify 3.1.1.

Verified: full `turbo build` (20/20) + typecheck (0 production errors)
across all apps; apps/api Dockerfile.multistage builds clean and boots
past module-load (better-auth 1.6 loads; stops only at the expected
SECRET_KEY env guard).

Remaining 16 are all dev/build-time or no-upstream-fix: tar
(electron-builder/giget/npm-bundled), minimatch (npm-bundled), esbuild
(dev-server only), uuid (exceljs, no v8 fix), sigstore (release CI),
cookie (disjoint majors), @ai-sdk/provider-utils (low, via stagehand).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 14, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
app Building Building Preview, Comment Jul 14, 2026 2:42pm
comp-framework-editor Building Building Preview, Comment Jul 14, 2026 2:42pm
portal Building Building Preview, Comment Jul 14, 2026 2:42pm

Request Review

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.

1 participant