From b2281e12c1edb9c7fc574335334c534cf8905867 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sun, 15 Nov 2026 23:14:04 +0100 Subject: [PATCH] build(deps): move the Node base image to 22.23.5 node:22-trixie-slim now resolves to 68c76cf, a multi-arch index with linux/amd64 and linux/arm64 that carries Node 22.23.5, a security release with HTTP, HTTP/2 and TLS fixes. All four Node stages and the release guard move to the new digest together. --- CHANGELOG.md | 5 +++++ Dockerfile | 8 ++++---- scripts/__tests__/release-workflows.test.ts | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 55aa1b220..3fde94601 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ ## [Unreleased] +### Security + +- The container image moves to Node 22.23.5, a security release with fixes + in HTTP, HTTP/2 and TLS handling (CVE-2026-123863 and others). + ## [1.47.6] — 2026-11-15 ### Added diff --git a/Dockerfile b/Dockerfile index 160069bc3..d24350db8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,7 @@ # future change to one of the stages cannot pair them wrongly. # ── Stage 1: Dependencies ────────────────────────────────── -FROM node:22-trixie-slim@sha256:be1e2a3dc2c4fd68cdfadad2a696a280e0d2749098bee509230174d72fb768c6 AS deps +FROM node:22-trixie-slim@sha256:68c76cfad89921b927eae28ba21407475e29d0ce450afcdbe70c1532db042b64 AS deps RUN corepack enable && corepack prepare pnpm@11.15.1 --activate WORKDIR /app @@ -29,7 +29,7 @@ COPY scripts/prepare.mjs scripts/prepare.mjs RUN pnpm install --frozen-lockfile --prod=false # ── Stage 2: Build ───────────────────────────────────────── -FROM node:22-trixie-slim@sha256:be1e2a3dc2c4fd68cdfadad2a696a280e0d2749098bee509230174d72fb768c6 AS builder +FROM node:22-trixie-slim@sha256:68c76cfad89921b927eae28ba21407475e29d0ce450afcdbe70c1532db042b64 AS builder RUN corepack enable && corepack prepare pnpm@11.15.1 --activate WORKDIR /app @@ -127,7 +127,7 @@ RUN node scripts/verify-message-catalogs.mjs --dir messages \ # npm install never reads. Rebuilding this install both ways confirms it: # without the two fields below npm resolves 1.19.11 and 1.2.0, with them it # resolves 1.19.17 and 1.4.2, and `prisma --version` still reports 7.8.0. -FROM node:22-trixie-slim@sha256:be1e2a3dc2c4fd68cdfadad2a696a280e0d2749098bee509230174d72fb768c6 AS prisma-cli +FROM node:22-trixie-slim@sha256:68c76cfad89921b927eae28ba21407475e29d0ce450afcdbe70c1532db042b64 AS prisma-cli RUN mkdir -p /opt/prisma-cli && \ cd /opt/prisma-cli && \ npm init -y && \ @@ -159,7 +159,7 @@ RUN set -eu; \ cp -L "$LIBPQ" /out/lib/libpq.so.5 # ── Stage 5: Production runner ───────────────────────────── -FROM node:22-trixie-slim@sha256:be1e2a3dc2c4fd68cdfadad2a696a280e0d2749098bee509230174d72fb768c6 AS runner +FROM node:22-trixie-slim@sha256:68c76cfad89921b927eae28ba21407475e29d0ce450afcdbe70c1532db042b64 AS runner # The package managers the base ships (npm, npx, corepack, yarn) go first. # Nothing at runtime installs a package, and the bundled npm carried the only # HIGH findings with a fix the image scan reported. Removed in a later layer, diff --git a/scripts/__tests__/release-workflows.test.ts b/scripts/__tests__/release-workflows.test.ts index 1b32ba387..4794f663f 100644 --- a/scripts/__tests__/release-workflows.test.ts +++ b/scripts/__tests__/release-workflows.test.ts @@ -228,7 +228,7 @@ describe("release container inputs", () => { expect(fromLines).toHaveLength(4); expect(new Set(fromLines.map((line) => line.split(" AS ")[0]))).toEqual( new Set([ - "FROM node:22-trixie-slim@sha256:be1e2a3dc2c4fd68cdfadad2a696a280e0d2749098bee509230174d72fb768c6", + "FROM node:22-trixie-slim@sha256:68c76cfad89921b927eae28ba21407475e29d0ce450afcdbe70c1532db042b64", ]), ); });