From e2f8ace1a85ff71da79904432201bb592412f134 Mon Sep 17 00:00:00 2001 From: BigBodyCobain <43977454+BigBodyCobain@users.noreply.github.com> Date: Wed, 4 Nov 2026 13:39:08 -0700 Subject: [PATCH] Move Docker images and CI to Node 24.22.1 (fixes #630) Node 20 is end of life and will not get the CVE-2026-111497 Brotli decoder fix from the 2026-10-21 Node.js security release. The frontend image now starts from node:24.22.1-alpine, the backend image installs Node 24 from NodeSource and refuses to build on anything older than 24.22.1, and CI runs on Node 24 so tests match the shipped runtime. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 4 ++-- backend/Dockerfile | 6 +++++- frontend/Dockerfile | 4 +++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 988eb7fb..a701f4c0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,7 +40,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 24 cache: npm cache-dependency-path: frontend/package-lock.json - run: npm ci @@ -101,6 +101,6 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 24 - name: Verify portable desktop backend staging run: node --test desktop-shell/tauri-skeleton/scripts/build-backend-runtime.test.cjs diff --git a/backend/Dockerfile b/backend/Dockerfile index b5ee8af9..5daa6dd8 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -29,10 +29,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ curl \ git \ tor \ - && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ + && curl -fsSL https://deb.nodesource.com/setup_24.x | bash - \ && apt-get install -y --no-install-recommends nodejs \ && rm -rf /var/lib/apt/lists/* +# Node 20 is EOL. Refuse to build on a Node runtime older than 24.22.1, the +# October 2026 security release that fixes CVE-2026-111497 (Brotli decoder). +RUN node -e "const [a,b,c]=process.versions.node.split('.').map(Number); if (a<24||(a===24&&(b<22||(b===22&&c<1)))) { console.error('Node '+process.versions.node+' is older than 24.22.1'); process.exit(1); } console.log('Node '+process.versions.node)" + # Install UV for fast, reproducible Python dependency management ADD https://astral.sh/uv/install.sh /uv-installer.sh RUN sh /uv-installer.sh && rm /uv-installer.sh diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 9a95068e..503c52c9 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,4 +1,6 @@ -FROM node:20-alpine AS base +# Node 24 LTS. Node 20 is EOL and never got the CVE-2026-111497 Brotli fix, +# which shipped in 24.22.1 (Node.js security release of 2026-10-21). +FROM node:24.22.1-alpine AS base FROM base AS deps RUN apk add --no-cache libc6-compat