Repository navigation
fix: bump Bun to 1.4.4 for CVE-2026-111497 (Brotli RCE) - #90
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
oven/bun 1.4.x is built on Debian 13, which no longer ships adduser/addgroup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
masudahiroto
approved these changes
Oct 23, 2026
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.
概要
Node.js 10月セキュリティリリースの Brotli RCE(CVE-2026-111497)は google/brotli 側のバグで、Bun も影響を受ける(oven-sh/bun#46352)。修正は Bun v1.4.4(2026-10-22, "update brotli")。Node を 24.22.1 に上げても、Bun で動くサービスには効かない。
use-ai-server-appの本番イメージはoven/bun:1.3.2-slimに固定されており、修正が入っていない。変更点
apps/use-ai-server-app/Dockerfile: base / production の両ステージをoven/bun:1.3.2-slim→oven/bun:1.4.4-slimにpackage.jsonのpackageManager:bun@1.3.13→bun@1.4.4(CI はbun-version-file: package.jsonなので、CI とランタイムが同じバージョンに揃う)apps/use-ai-server-app/Dockerfile:oven/bun:1.4.xのベースが Debian 12 (bookworm) から 13 (trixie) に変わり、addgroup/adduserが無くなったためgroupadd/useraddに置き換え。旧イメージと同じユーザー(uid 1001、gid nogroup、home/nonexistent、shell nologin)になることを確認済み確認
oven/bun:1.4.4-slim上でbun install --frozen-lockfileが通ることを確認済み(bun.lock の変更なし)UseAI server readyが出て、/socket.io/?EIO=4&transport=pollingのハンドシェイクが返ることを確認済み(Bun 1.4.4、uid 1001)既知の問題(今回の変更とは無関係)
Dockerfile の
HEALTHCHECKはsocket.io-clientを import するが、本番イメージに入っていないため常に失敗する。main(Bun 1.3.2)でも同じく unhealthy になる。k8s は Docker の HEALTHCHECK を使わないため、本 PR では触れていない。🤖 Generated with Claude Code