Skip to content

chore: always use the latest Bun in CI and mise - #348

Merged
kbwo merged 1 commit into
mainfrom
chore/investigate-cve-2026-111497
Oct 27, 2026
Merged

kbwo merged 1 commit into
mainfrom
chore/investigate-cve-2026-111497

Conversation

@kbwo

@kbwo kbwo commented Oct 25, 2026

Copy link
Copy Markdown
Owner

Merge risk

Note

Low - can be merged without reading the diff. Lint, typecheck, tests and the release binary build were run on the Bun version latest currently resolves to (1.4.4), and a revert restores the 1.3.11 pin.

Summary

  • CI, the release build and mise were pinned to Bun 1.3.11, which bundles Brotli v1.1.0 (affected by CVE-2026-111497).
  • All three now track latest instead of a fixed version.
  • Binaries built by the next release embed Bun ≥ 1.4.4, which bundles the fixed Brotli v1.2.1.

Problem

The release binaries are produced by bun build --compile (scripts/build-binaries.ts), so they embed the Brotli library Bun ships with. Bun 1.3.11 pins Brotli v1.1.0 (BuildBrotli.cmake @ af24e281e); Bun 1.4.4 pins db24a98 = Brotli v1.2.1 (brotli.ts @ bun-v1.4.4). ccmanager never decodes Brotli data, so the bug is not reachable through it; this only removes the vulnerable library from the shipped binaries.

Tracking latest rather than pinning 1.4.4 is intentional: future Bun releases are picked up without a manual bump, at the cost of a new Bun version being able to change CI or release builds without a change in this repo.

Verification

Ran locally on Bun 1.4.4+38afee6c8 (installed through mise from the updated .mise.toml).

  • bun install --frozen-lockfile → no changes.
  • bun run lint and bun run typecheck → no errors.
  • bun run build:binary:native → Build complete: 1 succeeded, 0 failed.
  • bun run test → 139 passed | 2 skipped (141).
    • In some full runs one of the *.submodule.test files fails in beforeAll with could not lock config file ~/.gitconfig: File exists: these files run git config --global in parallel. Vitest runs under Node, so this is independent of the Bun version and is not changed here.

After merge

  • On the next release, the npm-publish run log shows bun-version: latest resolving to ≥ 1.4.4.

🤖 Generated with Claude Code

Bun 1.3.11 bundles Brotli v1.1.0, which is affected by CVE-2026-111497.
Tracking the latest Bun picks up Brotli v1.2.1 (Bun >= 1.4.4) for the
compiled release binaries.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@kbwo
kbwo merged commit eec04f2 into main Oct 27, 2026
1 check passed
@kbwo
kbwo deleted the chore/investigate-cve-2026-111497 branch October 27, 2026 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant