Skip to content

build(docker): bump Node.js to 22.23.5 / 24.22.3 (security) - #1601

Merged
thepagent merged 1 commit into
mainfrom
build/node-22.23.5-24.22.3
Nov 15, 2026
Merged

thepagent merged 1 commit into
mainfrom
build/node-22.23.5-24.22.3

Conversation

@chaodu-agent

Copy link
Copy Markdown
Collaborator

Bumps the Node.js base image pins for the Node.js security release tracked in #1598. This is step 2 of the Base Image Security Release runbook. The beta and stable releases come after this PR merges. #1598 closes on its own once node-security-check.yml sees that the published images are current.

Changes

ARG Before After Files
NODE22_VERSION 22.23.4 22.23.5 Dockerfile.claude, .codex, .copilot, .gemini, .mimocode, .opencode, .pi, .package, .unified
NODE24_VERSION 24.22.1 24.22.3 Dockerfile.kimi, .package, .unified

The files come from git grep -lE 'ARG NODE[0-9]+_VERSION' -- 'Dockerfile*'. The diff is 12 ARG lines and nothing else. The nested Dockerfiles (agentcore/runtimes/kiro, openab-auth-proxy, openshell) have no Node pin. The rust:1-bookworm builder digest is unchanged.

Verification

  • git grep -nE '22\.23\.4|24\.22\.1' returns nothing after the bump.
  • The Node pins are image tags (FROM node:${NODE<n>_VERSION}-trixie-slim). No SHASUM or digest sits beside them, so no checksum needed updating. For reference, SHASUMS256.txt for v22.23.5 and for v24.22.3 exist, and Docker Hub publishes node:22.23.5-trixie-slim and node:24.22.3-trixie-slim.
  • The smoke tests read the expected version from the Dockerfiles. In docker-smoke-test.yml and docker-smoke-test-unified.yml, "Verify Node.js runtime version" gets the ARG name from .github/scripts/node_base_arg.sh, reads ARG <name>= from the Dockerfile under test, and compares it with node --version in the built image. validate-packaged-pins requires every Node-based Dockerfile to carry the exact pin line from Dockerfile.unified. No workflow edit is needed.
  • Locally (no image build): .github/scripts/test_node_base_arg.sh passes, and the pin parity check passes for all 12 pins.

Review Contract

Goal

Every Node.js-based agent image built from this repo uses the patched Node.js security releases: 22.23.5 for claude, codex, copilot, gemini, mimocode, opencode and pi, and 24.22.3 for kimi.

Non-goals

  • Cutting a beta or promoting to stable. Those are steps 3 and 4 of the runbook and follow the merge.
  • Closing Node.js security release pending: 22.23.5 / 24.22.3 #1598. node-security-check.yml closes it once the published images are current.
  • Changing workflows, the release process, agent CLI versions, or the rust:1-bookworm builder digest.

Accepted Residual Risks

  • The Node pins are tags, not digests, so a rebuild picks up whatever Docker Hub serves for node:22.23.5-trixie-slim and node:24.22.3-trixie-slim at build time, including Debian package updates. This matches the existing pinning policy from RFC: rebuild agent images for Node.js security releases (Node 22.23.4 / 24.22.1) #1567. The smoke tests still assert the exact Node.js version.
  • Published stable-* and beta-* images stay on the old Node.js until the next beta is cut and promoted. Recovery is the runbook's steps 3 and 4.

Acceptance Criteria

  • Every ARG NODE22_VERSION is 22.23.5 and every ARG NODE24_VERSION is 24.22.3 in each Dockerfile that declares them. No other line changes.
  • The Docker Smoke Test and Docker Smoke Test (Unified) jobs pass, including "Verify Node.js runtime version" for every Node-based variant and target.
  • validate-packaged-pins passes (pin parity with Dockerfile.unified).
  • All other required CI checks pass, including Review Contract.

Follow-ups

None for this PR. The release steps that follow the merge are already defined in RELEASING.md and tracked in #1598.

Refs #1598

Bump the Node.js base image pins for the Node.js security release
reported in #1598:

- ARG NODE22_VERSION 22.23.4 -> 22.23.5
- ARG NODE24_VERSION 24.22.1 -> 24.22.3

Files (from `git grep -lE 'ARG NODE[0-9]+_VERSION' -- 'Dockerfile*'`):
Dockerfile.claude, .codex, .copilot, .gemini, .mimocode, .opencode,
.pi (NODE22 only); Dockerfile.kimi (NODE24 only); Dockerfile.package and
Dockerfile.unified (both). 12 ARG lines, nothing else changed. Nested
Dockerfiles (agentcore/runtimes/kiro, openab-auth-proxy, openshell) have
no Node pin. The rust:1-bookworm builder digest is unchanged.

Checks run (no local image build; CI builds and smoke-tests):
- `git grep -nE '22\.23\.4|24\.22\.1'` after the bump: no matches.
- Checksums: the Node pins are image tags (`FROM node:${NODE<n>_VERSION}
  -trixie-slim`) with no SHASUM or digest beside them, so none to update.
  Looked up nodejs.org/dist/v22.23.5/SHASUMS256.txt and
  v24.22.3/SHASUMS256.txt for the record (linux-x64.tar.xz:
  cdeb8670...40f8 / 4f2b175a...fcfb). Docker Hub has
  node:22.23.5-trixie-slim (sha256:68c76cfa...2b64) and
  node:24.22.3-trixie-slim (sha256:af02d57b...24a0).
- Smoke-test version source verified: docker-smoke-test.yml and
  docker-smoke-test-unified.yml "Verify Node.js runtime version" get the
  ARG name from .github/scripts/node_base_arg.sh and the expected version
  by awk on `ARG <name>=` in the Dockerfile under test, then compare with
  `node --version`. validate-packaged-pins requires every Node Dockerfile
  to carry Dockerfile.unified's exact pin line. No workflow edit needed.
- .github/scripts/test_node_base_arg.sh: all tests passed.
- Pin parity (`node_base_arg.sh --check` on all tracked Dockerfiles, each
  pin matched against Dockerfile.unified): 12/12 ok.

Refs #1598
@chaodu-agent

Copy link
Copy Markdown
Collaborator Author

Note

LGTM ✅ - All 12 Node.js pins move to the November 11, 2026 security releases (22.23.5 / 24.22.3), the scope matches the runbook, and no blocking findings were identified. Wait for the Docker Smoke Test matrix to finish before merging.

What This PR Does

The Node.js security release tracked in #1598 patches Node.js 22.x and 24.x. This PR bumps every pinned Node.js base image from 22.23.4 to 22.23.5 and from 24.22.1 to 24.22.3, which is step 2 of the Base Image Security Release runbook in RELEASING.md.

How It Works

Only the ARG NODE22_VERSION / ARG NODE24_VERSION declarations change (9 + 3 lines across 10 Dockerfiles). The base stages use FROM node:${NODE<n>_VERSION}-trixie-slim, so no checksum or digest needs updating. The smoke tests read the expected version from the Dockerfile under test via .github/scripts/node_base_arg.sh and compare it with node --version in the built image. validate-packaged-pins enforces parity with Dockerfile.unified. No workflow change is needed.

Findings

# Severity Finding Location
1 🟢 All 12 Node.js ARG pins are updated, match Dockerfile.unified, and no old version string remains Dockerfile*
2 🟢 Target versions match the official Node.js security releases, and the upstream trixie-slim tags exist -
3 🟢 Local parser and pin-parity checks pass; CI, Node security check, and Review Contract are green .github/scripts/test_node_base_arg.sh
4 🟢 Diff stays within the stated contract (12 ARG lines only; no workflow, CLI, or builder-digest change) -
Finding Details

🟢 F1: Complete pin coverage

git grep -nE 'ARG NODE[0-9]+_VERSION' at the head SHA finds no pin on any other version, and git grep -nE '22\.23\.4|24\.22\.1' returns nothing. node_base_arg.sh --check discovers every Node-based Dockerfile, and each pin matches Dockerfile.unified. The nested Dockerfiles (agentcore/runtimes/kiro, openab-auth-proxy, openshell) have no Node.js pin.

🟢 F2: Correct security-release versions

The Node.js release pages list 22.23.5 and 24.22.3 as the November 11, 2026 security releases. Docker Hub returns node:22.23.5-trixie-slim and node:24.22.3-trixie-slim. No Node.js 26 pin exists in the repo, so nothing is missing for the 26.x line.

🟢 F3: Validation coverage

.github/scripts/test_node_base_arg.sh passes. node_security_check.sh in dry-run mode reports both pins as current. When this review was written, the Docker Smoke Test and Docker Smoke Test (Unified) matrices were still running. Those jobs include "Verify Node.js runtime version" and are the remaining merge gate.

🟢 F4: Scoped change

The PR follows RELEASING.md step 2 exactly. The residual risks it accepts (tag pins rather than digests, published stable-* / beta-* images staying stale until steps 3-4) are stated in the Review Contract and match the policy from #1567.

Non-blocking follow-up ideas
  • Base image pinning policy: pinning tags plus a recorded digest (or SBOM attestation) would make rebuilds more reproducible. Digest pinning would also stop automatic Debian-layer refreshes, so it belongs in a separate policy discussion, not in this security bump.
  • Automation: node-security-check.yml opens or updates an issue today. A bump PR generated by Renovate, Dependabot custom managers, or a repository-owned workflow could shorten response time for the 12-line edit across 10 Dockerfiles.
  • Release notes: the most severe CVEs in this release mostly affect processes that serve HTTP/2 or TLS to untrusted clients. Agent images mainly act as clients, so release notes should describe the urgency accurately.
Baseline Check
  • PR opened: 2026-11-15
  • Head: 71f1f876ae1f6dd9947d3cf2b7481b09e6a295a8
  • Base: main, merge-base 454668b268f52f7b869818bca3d2ee7f00670a1f
  • Diff: 10 files, +12 / -12
  • Main already has: Node.js 22.23.4 / 24.22.1 pins, the version-parity tooling, and the smoke-test version assertion
  • Net-new value: the source pins needed before the next beta build and stable promotion
Reviewer Verdicts
Reviewer Verdict Notes
Reviewer A (architecture/general) LGTM Runbook-compliant; tag policy consistent with #1567
Reviewer B (correctness) LGTM after CI green Versions and coverage correct; suggested digest pinning / automation as follow-ups
Reviewer C (security/CI) No report Coordinator baseline covered tag existence and CI state

No external reviewer feedback on this PR at review time.

5. Three Reasons We Might Not Need This PR

  1. Merging does not patch published images. Users get the fix only after the beta build and stable promotion (runbook steps 3-4).
  2. Limited reachable exposure. The most severe CVEs need a Node.js HTTP/2 or TLS server facing untrusted clients. Agent images mostly run Node.js as a client, so the practical risk is lower than the advisory rating.
  3. The bump could wait for a scheduled release. That would leave the tracked stable-* / beta-* images stale for longer, so this is a scheduling choice, not a correctness objection.

@thepagent
thepagent merged commit 049b0da into main Nov 15, 2026
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants