Skip to content

feat(express): run Express image on Node 26.13.1 - #10244

Merged
zahin-mohammad merged 3 commits into
masterfrom
WCN-4966-express-node-26
Nov 25, 2026
Merged

zahin-mohammad merged 3 commits into
masterfrom
WCN-4966-express-node-26

Conversation

@zahin-mohammad

@zahin-mohammad zahin-mohammad commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

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/express 17.10.x.

  • Base image: all three stages of the root Dockerfile change from node:24.22.1-bookworm-slim@sha256:55fb5f5a… to node:26.13.1-bookworm-slim@sha256:0042e17d232a87a2cd485be1da7900fca4d10a4ad11b29e9285da1d2e54798c9. The image stays on Debian 12 (bookworm), so the only change is the Node version.
  • Yarn: the official Node 26 images no longer include Yarn. The Node 24 image set YARN_VERSION=1.22.22 and installed it; the Node 26 image has no Yarn step. Without Yarn, the builder fails with spawn yarn ENOENT. This PR installs yarn@1.22.22, the version in package.json packageManager, in the builder stage and in the final stage, which needs it for the yarn link steps.
  • Puppeteer: sets PUPPETEER_SKIP_DOWNLOAD=true in the builder. Puppeteer is a devDependency of modules/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.
  • Docs: modules/express/README.md now 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 tini and 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 yarn instead of sfw yarn, because Socket Firewall returns HTTP 429 to unauthenticated local runs. CI covers the sfw path.

Check Result
node --version v26.13.1
apt --version apt 2.6.2 (arm64)
yarn --version 1.22.22
puppeteer in /var/node_modules not present
CI smoke test: GET /api/v2/ping {"status":"service is ok!"} after 3s

Also checked:

  • Multi-arch: the new digest is an OCI image index (a single digest that points to one image per CPU type) containing linux/amd64 and linux/arm64.
  • Node 26 compatibility: unit-test (26.x) is a required CI job on master and passes.
  • Puppeteer on Node 26: npm i puppeteer@25.16.0 succeeds 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:

docker run --rm --entrypoint apt bitgo/express:<new> --version   # expect 2.6.2

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

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>

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@linear-code

linear-code Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

WCN-4966

@zahin-mohammad
zahin-mohammad marked this pull request as draft November 25, 2026 17:51
zahin-mohammad and others added 2 commits November 25, 2026 13:20
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>
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Compatibility checks are failing on Node.js 27-nightly (experimental, non-blocking). This does not block merge, but it signals an incompatibility to fix before this release becomes supported.

View run

@zahin-mohammad
zahin-mohammad marked this pull request as ready for review November 25, 2026 18:52
@zahin-mohammad
zahin-mohammad merged commit 67f1d49 into master Nov 25, 2026
27 checks passed
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.

4 participants