Skip to content

fix: upgrade Bun to 1.4.4 and patch server dependency CVEs - #266

Merged
kaladinlight merged 1 commit into
mainfrom
fix/bun-1.4.4-security-deps
Oct 22, 2026
Merged

kaladinlight merged 1 commit into
mainfrom
fix/bun-1.4.4-security-deps

Conversation

@kaladinlight

@kaladinlight kaladinlight commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Bun 1.3.2 → 1.4.4 (packageManager, engines.bun, CI). The server runs on Bun in production (bun apps/agentic-server/dist/server.js), so the .nvmrc Node 22.23.4 bump doesn't cover it. Bun bundles its own Brotli, and CVE-2026-111497 (Brotli decoder out-of-bounds write that can lead to RCE) is fixed in oven-sh/bun#46392, shipped in 1.4.4 (#46352). Bun's fetch() auto-decompresses br responses from upstream APIs. There's no 1.3.x backport.
    • Pinned exactly: Railpack resolves version ranges only to releases at least 14 days old, so a range would stay on an unpatched Bun for about two weeks.
  • expr-eval → expr-eval-fork@3.0.3. expr-eval is unmaintained, and its code execution and prototype pollution advisories (GHSA-q9v2-7m5w-4693, GHSA-jc85-fpwf-qm7x, GHSA-8gw3-rxh4-v6jx) will never be patched upstream. mathCalculator evaluates expressions that the LLM generates from user prompts. The fork keeps the same Parser API, and we don't pass an evaluation context, so the breaking changes in 3.0 don't affect us.
  • hono ^4.10.2 → ^4.13.13, axios ^1.11.0 → ^1.20.0 (server). These fix several high advisories (hono JWT, serveStatic, CORS; axios prototype-pollution gadgets, proxy credential leaks, DoS).

bun audit: 175 → 132 findings (2 → 1 critical). What's left is transitive: older axios copies pinned inside the Dynamic wallet SDK (frontend only), wallet SDK deps, and dev tooling (shell-quote via concurrently).

Test plan

All run locally on Bun 1.4.4:

  • bun install, bun run type-check, bun run lint
  • bun test: 659 pass, 0 fail
  • bun run build:server, then boot dist/server.js: /health returns 200
  • mathCalculator returns the same results (781573210609912 / (10 ^ 18) gives 0.000781573210609912), and constructor.constructor(...) / __proto__ access is rejected
  • Bun 1.4.4 fetch() still decodes Brotli responses
  • Railway deploy log shows bun | 1.4.4 | idiomatic-version-file
  • Chat smoke test on deployed server (a math tool call and a swap quote)

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated the project’s build and server tooling. No end-user-facing changes are included in this update.

- Bun 1.3.2 -> 1.4.4 (packageManager, engines, CI). The server runs on
  Bun in production, and 1.4.4 ships the Brotli decoder fix for
  CVE-2026-111497 (oven-sh/bun#46352). 1.3.x has no backport.
- expr-eval -> expr-eval-fork 3.0.3. expr-eval is unmaintained, with
  unpatched code execution and prototype pollution advisories
  (GHSA-q9v2-7m5w-4693, GHSA-jc85-fpwf-qm7x, GHSA-8gw3-rxh4-v6jx).
- hono ^4.10.2 -> ^4.13.13 and axios ^1.11.0 -> ^1.20.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
shapeshift-agentic Ready Ready Preview Oct 22, 2026 7:53pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 011149e1-16ac-49df-9bd9-2fc0732443f8
📥 Commits

Reviewing files that changed from the base of the PR and between cad4e0e and 5df92fe.

⛔ Files ignored due to path filters: 1
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing: 4
  • .github/workflows/ci.yml
  • apps/agentic-server/package.json
  • apps/agentic-server/src/tools/mathCalculator.ts
  • package.json

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📝 Walkthrough

The repository now specifies Bun 1.4.4 for its engine, package manager, and CI setup. The agentic server updates axios and hono, replaces expr-eval with expr-eval-fork, and imports the fork’s Parser in the math calculator.

Changes: Toolchain and server dependencies

Layer / File(s) Summary
Bun 1.4.4 alignment
package.json, .github/workflows/ci.yml
The minimum Bun engine version, declared package manager, and CI setup version changed to 1.4.4.
Agentic server dependency updates
apps/agentic-server/package.json, apps/agentic-server/src/tools/mathCalculator.ts
The server updates axios and hono, replaces expr-eval with expr-eval-fork, and imports the fork’s Parser. Related comments now name expr-eval-fork.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: 0xapotheosis

Merge Risk: ⚪ Minimal · up to 5df92

No concrete issue remains that blocks merging. Confirm the Bun version on Railway as part of deployment validation.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely identifies the two main changes: upgrading Bun to 1.4.4 and updating server dependencies to address reported CVEs.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files. (3 skipped: 3 unsupported.)

✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

A rabbit checks the version line,
Bun hops to one-four-point-four.
The math tool finds a parser fork,
New packages join the burrow floor.
Axios and hono change their tags,
Then carrots roll across the logs.

Comment @coderabbitai help to get the list of available commands.

@kaladinlight
kaladinlight merged commit d9e3dbd into main Oct 22, 2026
4 checks passed
@kaladinlight
kaladinlight deleted the fix/bun-1.4.4-security-deps branch October 22, 2026 20:11

This branch was successfully deployed

1 active deployment
Preview — 5df92fe1 Deployed Oct 22, 2026 by vercel[bot]
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