From 7a3f660c09dd54c092b46ce883422ea504ff94e6 Mon Sep 17 00:00:00 2001 From: Zahin Mohammad Date: Wed, 25 Nov 2026 12:50:03 -0500 Subject: [PATCH 1/3] feat(express): run Express image on Node 26.13.1 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 --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 33cf9328f7..708168f813 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ # An elaborated scheme to build all the dependencies of all packages first in a cached layer # https://stackoverflow.com/a/63142468/134409 # https://medium.com/@emilefugulin/building-a-sane-docker-image-for-typescript-lerna-and-prisma-2-76d8ff9926e4 -FROM node:24.22.1-bookworm-slim@sha256:55fb5f5a527ea2c5c4a95f963e48ef90aa38c7b346054fdc8ee9957a2b55d205 AS filter-packages-json +FROM node:26.13.1-bookworm-slim@sha256:0042e17d232a87a2cd485be1da7900fca4d10a4ad11b29e9285da1d2e54798c9 AS filter-packages-json LABEL maintainer="Developer Relations " COPY package.json yarn.lock lerna.json ./ @@ -12,7 +12,7 @@ COPY modules ./modules # delete all the non package.json files under `./modules/` RUN find modules \! -name "package.json" -mindepth 2 -maxdepth 2 -print | xargs rm -rf -FROM node:24.22.1-bookworm-slim@sha256:55fb5f5a527ea2c5c4a95f963e48ef90aa38c7b346054fdc8ee9957a2b55d205 AS builder +FROM node:26.13.1-bookworm-slim@sha256:0042e17d232a87a2cd485be1da7900fca4d10a4ad11b29e9285da1d2e54798c9 AS builder ARG SOCKET_SECURITY_MODE=monitor ENV SOCKET_SECURITY_MODE=${SOCKET_SECURITY_MODE} RUN apt-get update && apt-get install -y git python3 make g++ libtool autoconf automake @@ -34,7 +34,7 @@ RUN \ rm -r modules/*/src -FROM node:24.22.1-bookworm-slim@sha256:55fb5f5a527ea2c5c4a95f963e48ef90aa38c7b346054fdc8ee9957a2b55d205 +FROM node:26.13.1-bookworm-slim@sha256:0042e17d232a87a2cd485be1da7900fca4d10a4ad11b29e9285da1d2e54798c9 RUN apt-get update && apt-get install -y tini # copy the root node_modules to the bitgo-express parent node_modules COPY --from=builder /tmp/bitgo/node_modules /var/node_modules/ From 63f318dfa28b2146154c875307e71d48a090e4d3 Mon Sep 17 00:00:00 2001 From: Zahin Mohammad Date: Wed, 25 Nov 2026 13:20:11 -0500 Subject: [PATCH 2/3] fix(express): install yarn and skip puppeteer download on Node 26 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 --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 708168f813..5b6ca843b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,8 +15,11 @@ RUN find modules \! -name "package.json" -mindepth 2 -maxdepth 2 -print | xargs FROM node:26.13.1-bookworm-slim@sha256:0042e17d232a87a2cd485be1da7900fca4d10a4ad11b29e9285da1d2e54798c9 AS builder ARG SOCKET_SECURITY_MODE=monitor ENV SOCKET_SECURITY_MODE=${SOCKET_SECURITY_MODE} +# Puppeteer is only used by browser tests; the Express image never needs a bundled Chrome. +ENV PUPPETEER_SKIP_DOWNLOAD=true RUN apt-get update && apt-get install -y git python3 make g++ libtool autoconf automake -RUN npm i -g --no-fund sfw@2.0.6 && sfw true +# Node 26+ official images no longer bundle Yarn; pin the version from package.json "packageManager". +RUN npm i -g --no-fund sfw@2.0.6 yarn@1.22.22 && sfw true WORKDIR /tmp/bitgo COPY --from=filter-packages-json /tmp/bitgo . # (skip postinstall) https://github.com/yarnpkg/yarn/issues/4100#issuecomment-388944260 @@ -36,6 +39,7 @@ RUN \ FROM node:26.13.1-bookworm-slim@sha256:0042e17d232a87a2cd485be1da7900fca4d10a4ad11b29e9285da1d2e54798c9 RUN apt-get update && apt-get install -y tini +RUN npm i -g --no-fund yarn@1.22.22 # copy the root node_modules to the bitgo-express parent node_modules COPY --from=builder /tmp/bitgo/node_modules /var/node_modules/ COPY --from=builder /tmp/bitgo/modules/express /var/bitgo-express/ From e999a064fd99e6fae5ce58dde1ce1fe0ad77d4b2 Mon Sep 17 00:00:00 2001 From: Zahin Mohammad Date: Wed, 25 Nov 2026 13:20:21 -0500 Subject: [PATCH 3/3] docs(express): track newest Node.js LTS in Docker image 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 --- modules/express/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/express/README.md b/modules/express/README.md index ba67162198..bbd15da021 100644 --- a/modules/express/README.md +++ b/modules/express/README.md @@ -117,7 +117,7 @@ $ yarn build-docker-express $ docker run -it bitgo-express:latest ``` -The BitGo Express Docker image tracks the older of the two most recent Node.js Long-Term Support (LTS) releases. It currently builds and runs on Node.js 24. +The BitGo Express Docker image tracks the newest Node.js Long-Term Support (LTS) release. It currently builds and runs on Node.js 26. ## From source