Repository navigation
security: hotfix critical runtime advisories on main - #79
Merged
Merged
Conversation
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. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vm1iXpgdwQfcWuyNzX9KF7
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.
本番に残っている critical な脆弱性を塞ぐための hotfix です。
背景
本番は main で動いています。main は develop より 52 コミット遅れているため、develop で入れた依存関係の修正(#75 、
bf6eb45、#78 )が本番には届いていません。かといって develop を丸ごとリリースすると、ロール用の migration など未リリースの変更まで本番に出てしまいます。そこで、main のバージョンを起点に、脆弱性を塞ぐのに必要な変更だけを入れました。変更
use cacheの認証不要 RCE^8.5.23/^0.35.3に変更develop の
bf6eb45と同じ変更(レビュー済み)@opennextjs/cloudflareを devDependencies に移しました。使っているのはnext.config.ts・open-next.config.ts・ビルド用スクリプトだけで、srcからは読み込まれていません。これにより、wrangler・miniflare・glob 系の脆弱性が実行時の依存関係から外れます^8.5.23に変えました更新しなかったもの
better-auth は minor 更新なので、better-auth が要求する DB スキーマを新旧で比べ、差分がないことを確認しました。
検証(手元で、main の CI と同じ手順)
wrangler deploy --dry-runOKwrangler deploy --dry-runOKopennextjs-cloudflare buildOKマージ後に必要なこと
frontend/package.jsonと各 lockfile で競合が出る可能性があります。develop 側を採用すれば解決します(develop は同じかそれ以上新しいバージョンです)Generated by Claude Code