Repository navigation
feat(express): run Express image on Node 26.13.1 - #10244
Merged
Merged
Conversation
Move all three Dockerfile stages from node:24.22.1-bookworm-slim to node:26.13.1-bookworm-slim now that Node 26 is LTS, pinned to the multi-arch index digest published on Docker Hub (includes linux/amd64 and linux/arm64). The new base ships apt 2.6.2, which fixes CVE-2026-109518 reported by a client against bitgo/express 17.10.x. The previous Node 24 digest predated the Debian fix and the final stage never upgrades packages. Ticket: WCN-4966 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
Contributor
zahin-mohammad
marked this pull request as draft
November 25, 2026 17:51
The official Node 26 images no longer bundle Yarn (the Node 24 image set YARN_VERSION=1.22.22; the Node 26 image has no yarn layer), so the builder failed with "spawn yarn ENOENT". Install yarn@1.22.22, matching package.json "packageManager", in the builder and final stages; the final stage needs it for the `yarn link` steps. Also set PUPPETEER_SKIP_DOWNLOAD=true in the builder. Puppeteer is a devDependency of modules/bitgo used only for browser tests and is pruned before the final stage, so downloading Chrome during the build is wasted work and was a source of build failures. Ticket: WCN-4966 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Update the Docker runtime policy: the BitGo Express image now tracks the newest Node.js LTS release and runs on Node.js 26. Ticket: WCN-4966 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
|
zahin-mohammad
marked this pull request as ready for review
November 25, 2026 18:52
hitansh-madan
approved these changes
Nov 25, 2026
danielpeng1
approved these changes
Nov 25, 2026
pranishnepal
approved these changes
Nov 25, 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.
Summary
Moves the BitGo Express Docker image from Node 24 to Node 26, which is now LTS. This also fixes the apt CVE a client reported against
bitgo/express17.10.x.Dockerfilechange fromnode:24.22.1-bookworm-slim@sha256:55fb5f5a…tonode:26.13.1-bookworm-slim@sha256:0042e17d232a87a2cd485be1da7900fca4d10a4ad11b29e9285da1d2e54798c9. The image stays on Debian 12 (bookworm), so the only change is the Node version.YARN_VERSION=1.22.22and installed it; the Node 26 image has no Yarn step. Without Yarn, the builder fails withspawn yarn ENOENT. This PR installsyarn@1.22.22, the version inpackage.jsonpackageManager, in the builder stage and in the final stage, which needs it for theyarn linksteps.PUPPETEER_SKIP_DOWNLOAD=truein the builder. Puppeteer is a devDependency ofmodules/bitgo, used only by karma browser tests, and it's pruned before the final stage. Downloading Chrome during the image build was wasted work and could fail the build.modules/express/README.mdnow says the image tracks the newest Node.js LTS release (previously "the older of the two most recent").Why
The current Node 24 digest was built before Debian fixed CVE-2026-109518 in apt 2.6.2 (DLA-4880-1, Nov 4). The final stage only runs
apt-get install -y tiniand never upgrades existing packages, so published images still have apt 2.6.1.Verification
I built the image locally on linux/arm64 (Colima, 24 GiB). The local build runs plain
yarninstead ofsfw yarn, because Socket Firewall returns HTTP 429 to unauthenticated local runs. CI covers thesfwpath.node --versionv26.13.1apt --versionapt 2.6.2 (arm64)yarn --version1.22.22/var/node_modulesGET /api/v2/ping{"status":"service is ok!"}after 3sAlso checked:
linux/amd64andlinux/arm64.unit-test (26.x)is a required CI job on master and passes.npm i puppeteer@25.16.0succeeds on both Node 24 and Node 26 in isolation. A local build failure in its postinstall (exit 13, "unsettled top-level await") happened on a 12 GiB VM and wasn't reproducible, so it wasn't caused by Node 26.Release note
Merging doesn't republish the image. The image is only pushed by the "Publish Express To Docker Hub" job in
npmjs-release.yml, which runs on a release. After the release, confirm the fix with:Out of scope
The root
.nvmrc(24.22.1), which sets the Node version for CI and npm publishing, is unchanged.Ticket: WCN-4966
🤖 Generated with Claude Code