ci: replace the runner image's Node.js 24.18.1 with the official 24.22.1 (CVE-2026-111497) #23

Merged
noel merged 1 commit from ci/node24-cve-2026-111497 into main 2026-10-25 21:00:45 +00:00
Owner

Part of the 2026-10-25 supply-chain audit of the noel/act* repositories.

Finding

  • Forgejo's runner runs every JavaScript action (checkout, upload-artifact, download-artifact) and every node/npm job step with the node first on the job image's PATH. An action's runs.using label does not choose the binary.
  • The job image the dispatcher pins (act-node-docker@sha256:1f0ae8ac…) inherits that node from catthehacker/ubuntu:act-latest 20260801 (sha256:3155564c…):
    • Node.js 24.18.1 at /opt/acttoolcache/node/24.18.1/x64. It is exposed to CVE-2026-111497 (brotli decoder remote code execution), which the 2026-10-20 security release 24.22.1 fixes along with six other CVEs.
    • Node.js 20.20.2 at /opt/acttoolcache/node/20.20.2, unused, and end of life since April 2026.
  • I observed this in the locally held grandparent sha256:e54a2c5d…: node --version gives v24.18.1, PATH is as listed, and the toolcache holds the two trees. The jq and supplychain leaves above it do not touch Node.

Change

A new additive leaf, Dockerfile.system-hz-node24, over sha256:1f0ae8ac…, following the jq leaf's pattern:

  • It installs the official node-v24.22.1-linux-x64.tar.xz (sha256 6c172a9a…95e6) at /opt/acttoolcache/node/24.22.1/x64. node24-inputs.json seals it. The release's SHASUMS256.txt.asc verifies against Node.js release key 5BE8A3F6…D356.
  • It restates PATH with 24.22.1 in 24.18.1's place, and removes the 24.18.1 and 20.20.2 trees. Nothing in Codewire, infra or this repository names them.
  • The networkless first RUN asserts the parent's exact PATH, node path and version, its toolcache contents, and that no node or npm is installed elsewhere. The second RUN asserts the new resolution, the version, the LTS line, a brotli round trip, npm, jq 1.8.2 and supplychain v0.1.7.
  • It adds verify-installed-system-hz-node24.py (13 checks) and README.system-hz-node24.md.

Age flag: 24.22.1 is 5 days old, inside the pinning policy's 7-day flag. It is the upstream maintainers' security release for an RCE, so it needs the owner's explicit OK, as earlier same-week security fixes did. Node.js 22.23.4 from the same release is being taken for Codewire's own Node pins under CVE-2026-111497.

Checks

The real parent needs registry credentials, so I rebuilt it locally from this repository's sealed leaves. The jq leaf went on the locally held sha256:e54a2c5d…, then the supplychain leaf. Every sealed input matched its pinned SHA-256. The rebuilt supplychain binary is byte-identical to the verifier's pinned fc17a8e6….

Check Result
docker buildx build -f Dockerfile.system-hz-node24 over the rebuilt parent exit 0, all in-build assertions passed
verify-installed-system-hz-node24.py, uid 1000, read-only root, no network, Codewire main's consumers PASS commands=13 node=v24.22.1
Same verifier against the parent image (negative) exit 1
Codewire assert-ci-runner-image.sh from main, inside the leaf Codewire CI runner image contract: OK

Follow-ups (not in this PR)

  • Infra's scripts/forgejo-runner-image must accept node_inputs from https://nodejs.org/dist/ before it can build and publish this leaf. Then the dispatcher and the metal golden image move to the new digest, as for the jq and supplychain leaves. Publication and runner adoption stay owner-approved steps.
  • The base Dockerfile still takes Node.js from catthehacker. Its next full rebuild needs a base carrying 24.22.1 or later, or the same pinned install.
  • The base Dockerfile builds atmos with golang:1.26.2 and the default supplychain with golang:1.26.5. OSV lists 35 and 22 Go standard-library advisories for those versions; 1.26.10 has none. Rebuilding those binaries is a separate leaf.
Part of the 2026-10-25 supply-chain audit of the `noel/act*` repositories. ## Finding - Forgejo's runner runs every JavaScript action (checkout, upload-artifact, download-artifact) and every `node`/`npm` job step with the `node` first on the job image's PATH. An action's `runs.using` label does not choose the binary. - The job image the dispatcher pins (`act-node-docker@sha256:1f0ae8ac…`) inherits that `node` from `catthehacker/ubuntu:act-latest` 20260801 (`sha256:3155564c…`): - Node.js 24.18.1 at `/opt/acttoolcache/node/24.18.1/x64`. It is exposed to CVE-2026-111497 (brotli decoder remote code execution), which the 2026-10-20 security release 24.22.1 fixes along with six other CVEs. - Node.js 20.20.2 at `/opt/acttoolcache/node/20.20.2`, unused, and end of life since April 2026. - I observed this in the locally held grandparent `sha256:e54a2c5d…`: `node --version` gives v24.18.1, PATH is as listed, and the toolcache holds the two trees. The jq and supplychain leaves above it do not touch Node. ## Change A new additive leaf, `Dockerfile.system-hz-node24`, over `sha256:1f0ae8ac…`, following the jq leaf's pattern: - It installs the official `node-v24.22.1-linux-x64.tar.xz` (sha256 `6c172a9a…95e6`) at `/opt/acttoolcache/node/24.22.1/x64`. `node24-inputs.json` seals it. The release's `SHASUMS256.txt.asc` verifies against Node.js release key `5BE8A3F6…D356`. - It restates PATH with 24.22.1 in 24.18.1's place, and removes the 24.18.1 and 20.20.2 trees. Nothing in Codewire, infra or this repository names them. - The networkless first `RUN` asserts the parent's exact PATH, `node` path and version, its toolcache contents, and that no `node` or `npm` is installed elsewhere. The second `RUN` asserts the new resolution, the version, the LTS line, a brotli round trip, npm, jq 1.8.2 and supplychain v0.1.7. - It adds `verify-installed-system-hz-node24.py` (13 checks) and `README.system-hz-node24.md`. **Age flag:** 24.22.1 is 5 days old, inside the pinning policy's 7-day flag. It is the upstream maintainers' security release for an RCE, so it needs the owner's explicit OK, as earlier same-week security fixes did. Node.js 22.23.4 from the same release is being taken for Codewire's own Node pins under CVE-2026-111497. ## Checks The real parent needs registry credentials, so I rebuilt it locally from this repository's sealed leaves. The jq leaf went on the locally held `sha256:e54a2c5d…`, then the supplychain leaf. Every sealed input matched its pinned SHA-256. The rebuilt supplychain binary is byte-identical to the verifier's pinned `fc17a8e6…`. | Check | Result | |---|---| | `docker buildx build -f Dockerfile.system-hz-node24` over the rebuilt parent | exit 0, all in-build assertions passed | | `verify-installed-system-hz-node24.py`, uid 1000, read-only root, no network, Codewire main's consumers | `PASS commands=13 node=v24.22.1` | | Same verifier against the parent image (negative) | exit 1 | | Codewire `assert-ci-runner-image.sh` from main, inside the leaf | `Codewire CI runner image contract: OK` | ## Follow-ups (not in this PR) - Infra's `scripts/forgejo-runner-image` must accept `node_inputs` from `https://nodejs.org/dist/` before it can build and publish this leaf. Then the dispatcher and the metal golden image move to the new digest, as for the jq and supplychain leaves. Publication and runner adoption stay owner-approved steps. - The base `Dockerfile` still takes Node.js from `catthehacker`. Its next full rebuild needs a base carrying 24.22.1 or later, or the same pinned install. - The base `Dockerfile` builds atmos with `golang:1.26.2` and the default supplychain with `golang:1.26.5`. OSV lists 35 and 22 Go standard-library advisories for those versions; 1.26.10 has none. Rebuilding those binaries is a separate leaf.
Forgejo's runner runs every JavaScript action and every node or npm job step
with the node first on the job image's PATH. The image inherits Node.js
24.18.1 from catthehacker/ubuntu:act-latest 20260801, which is exposed to
CVE-2026-111497 (brotli decoder RCE), plus an unused end-of-life Node.js
20.20.2 toolcache tree.

The additive leaf over the supplychain v0.1.7 image installs the official
node-v24.22.1-linux-x64 release (sealed in node24-inputs.json, its
SHASUMS256.txt.asc signed by a Node.js release key) in the same toolcache
layout, restates PATH with it in 24.18.1's place, and removes both old trees.
The installed verifier checks the bytes, PATH, version, a brotli round trip,
Codewire's runner assertion and the inherited scanner bytes.
noel merged commit e9a87d5b25 into main 2026-10-25 21:00:45 +00:00
noel deleted branch ci/node24-cve-2026-111497 2026-10-25 21:00:50 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
noel/act-node-docker!23
No description provided.