From a33b1634255146d4efef7b8eb568e08689bd7d14 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 23 Oct 2026 15:16:01 +0000 Subject: [PATCH] fix(docker): pin Node base to 24.22.1 for CVE-2026-111497 (Node2Shell) Node2Shell is an out-of-bounds write in the Brotli decoder bundled with Node.js that can be driven to remote code execution by any server that decompresses attacker-supplied Brotli data. Node 24.22.1 (released 2026-10-21) is the first 24.x carrying the fix. The floating `node:24-slim` tag already resolves to 24.22.1, but the published image (v0.16.2, built 2026-08-10) predates it. Pinning the patch release makes the next release build provably include the fix instead of depending on what the tag resolves to at build time. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01NagQEKHqj7WXprdQNc1SnW --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5563e3880..a316d4396 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,11 @@ # prebuilt binary matches the image's libc/arch. Those tools are only ever installed in # the `deps`/`prod-deps` build stages — the final `runtime` stage stays slim. -ARG NODE_IMAGE=node:24-slim +# Pinned to a patch release rather than the floating `node:24-slim` so a release +# build can never reuse an older base. 24.22.1 is the first 24.x with the fix for +# CVE-2026-111497 ("Node2Shell", RCE via Node's bundled Brotli decoder); bump this +# pin when a later Node security release lands. +ARG NODE_IMAGE=node:24.22.1-slim ARG APP_VERSION=0.0.0-dev ARG APP_COMMIT=