Repository navigation
security: patch runtime dependencies flagged since the last audit - #78
Merged
Merged
Conversation
CI's `npm audit --omit=dev --audit-level=high` now fails on every branch: advisories published after the last green run cover packages all three workspaces ship. - better-auth 1.6.23 -> 1.7.15 (critical: sign-in as another user via OAuth Proxy / Magic Link state). Neither plugin is configured here, but the fix is in range. The schema better-auth requires is unchanged between the two. - next 16.3.4 -> 16.4.3 (critical: unauthenticated RCE in Image Optimization and `use cache`, among others). The pin is exact, so it is bumped by hand. - zod 4.4.3 -> 4.6.7 (high), hono 4.13.5 -> 4.13.16 (moderate), sharp 0.35.4 -> 0.35.5 and source-map-js -> 1.2.2 (high, frontend). Left alone: drizzle-kit's esbuild chain (moderate). Its only fix is a downgrade to drizzle-kit 0.18.1 via --force, which is a breaking change and below the CI threshold. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vm1iXpgdwQfcWuyNzX9KF7
yufoxda
added a commit
that referenced
this pull request
Nov 1, 2026
Production runs main, which is 52 commits behind develop, so the dependency fixes merged there (#75, bf6eb45, #78) have not reached it. Releasing develop would ship unreleased work such as the role migrations, so this applies only what closing the advisories needs, on main's own versions. - next 16.2.10 -> 16.4.3 (critical: unauthenticated RCE in Image Optimization and `use cache`). Pinned exactly, as before. - better-auth 1.6.23 -> 1.7.15 (critical: sign-in as another user). The schema it requires is unchanged between the two versions. - zod -> 4.6.7 (high), hono -> 4.13.16 (moderate), plus transitive fixes. - Same changes as develop's bf6eb45, already reviewed there: @opennextjs/cloudflare moves to devDependencies (only next.config.ts, open-next.config.ts and the build scripts use it), the postcss override moves from the vulnerable 8.5.13 to ^8.5.23, and sharp is pinned to ^0.35.3. Left alone: drizzle-kit's esbuild chain in community (moderate, fix is a breaking downgrade), as on develop. Claude-Session: https://claude.ai/code/session_01Vm1iXpgdwQfcWuyNzX9KF7 Co-authored-by: Claude <noreply@anthropic.com>
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.
CI の
npm audit --omit=dev --audit-level=highが、現在すべてのブランチで失敗しています(#77 で判明)。前回 CI が通った後に公開された脆弱性情報が原因です。develop と main は同じバージョンを使っているので、本番にも同じ脆弱性があります。更新したもの
use cacheの認証不要 RCE 等)package.jsonでバージョンを完全固定しているため、手で書き換えました。それ以外の変更はpackage-lock.jsonだけですgetAuthTablesの出力 30 カラムがすべて一致)更新しなかったもの
--forceで drizzle-kit 0.18.1 へダウングレードする必要があり、互換性を壊します。CI の基準(high 以上)にも達していないため、今回は対象外にしました検証(手元で、CI と同じ手順)
wrangler deploy --dry-runOKwrangler deploy --dry-runOKopennextjs-cloudflare buildOKまだ確かめていないこと:next 16.4 と better-auth 1.7 を入れた状態で、実際にログインしてみる確認はしていません。マージ前に、ステージングかローカルでログインの流れを一度試すことを勧めます。
Generated by Claude Code