Skip to content

The server image's Go and Node pins carry no fixed critical CVE: Go 1.27.3, Node 22.23.4 - #319

Merged
zlareb1 merged 11 commits into
mainfrom
fix/image-critical-cves
Nov 7, 2026
Merged

zlareb1 merged 11 commits into
mainfrom
fix/image-critical-cves

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Build/Testing/Packaging Improvement

Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):

The server image's Go toolchain (1.27.3) and Node runtime (22.23.4) carry no critical CVE that has a fixed release, and a weekly image scan reports one before a release meets it.

Why

A release dry run's scan of the server image found two critical CVEs that have fixed releases, and the release workflow refuses those:

  • CVE-2025-68121 (crypto/tls certificate validation) is in the Go 1.23.4 toolchain binaries under /usr/local/go. The image ships them for the Go compiler-tier indexer. It is fixed in 1.24.13, 1.25.7 and later.
  • CVE-2026-59873 (gzip bomb denial of service) is in node-tar 7.5.11, which the npm bundled with Node 22.23.2 uses. Node 22.23.4 bundles npm 10.9.9, which depends on tar ^7.5.22. The fix is in 7.5.19.

No tag run ever reached the scan, so this would have failed the first release that pushed the image. Nothing scanned the image outside a release, and the ARG pins are not among the files the dependency bot updates. docker-smoke now scans both images on both architectures with the release's scan settings. The scans run after its smoke, and also when the smoke fails, so neither result hides the other. On a pull request or a push, a finding (or a scanner that cannot run) marks the step and leaves the job green. A new weekly scheduled run and a manual dispatch fail on it. A scheduled run's failure notifies only the last editor of the schedule, so the release procedure (docs/development/release-process.md, "Cutting the release") now checks the latest scheduled run before a tag. The weekly and dispatched runs build without the build cache, so their scan sees the packages the archives serve that day, as the release build, which is uncached, does. The runner deletes its unused hosted toolchains before the scans, since Trivy copies the 2.5 GB server image to /tmp and the amd64 runner otherwise runs out of disk.

Scope and risk

Two ARG pins and their checksums in the go-builder and node-builder stages change, and docker-smoke.yml gains the scan steps and a weekly schedule. Since the schedule reaches every job of the workflow, it also smokes main weekly. The release process page gains the pre-tag check, and loom-investigate-ci names a scan failure and how to reproduce it. Go 1.27.3 is the newest Go release. Node stays on the 22 line. The checksums are the ones go.dev and nodejs.org publish (go.dev/dl/?mode=json and SHASUMS256.txt). The risk is scip-go v0.2.7 failing to build with the newer Go, or a repository's Go module failing to load under it. The docker-smoke jobs build the image on both architectures and run the compiler-tier indexing smoke, which uses scip-go.

Compatibility, rollout and rollback

  • Wire: none.
  • Operator steps: none.
  • Rollback: revert. No stored state.

Tests

  • Dispatch run 42314125873, with a cached build, ran both architectures' scans to the end. It failed on libbrotli1 1.1.0-2+b7 (CVE-2026-111497, critical, fixed in +deb13u1), from an apt layer the build cache replayed. That finding is why the scheduled and dispatched builds go uncached, as the release build already is.
  • Dispatch run 42359567333 at the pre-rebase head e9aaea8 (on a main whose extractor image adds the OCR apt layer; the later rebase changed no file in this diff) ran uncached with blocking scans, and every job passed: both images on amd64 and arm64 had no fixed critical CVE, and both quickstarts passed. The cached pull-request run at the same head found libbrotli1 (CVE-2026-111497) and linux-libc-dev (CVE-2026-99083) again in the arm64 server image, from replayed apt layers, as expected of a cached build.
  • Dispatch run 42320662848 at dde30ff (before the rebase onto the OCR layer; later commits changed comments, docs, the job's timeout and the disk step's condition, which selects the same runs) ran uncached with blocking scans (continue-on-error is off on a dispatch). Every job passed (the amd64 job in 29.5 minutes, so an uncached run's timeout is now 60):
    • both images on amd64 and arm64 had no fixed critical CVE;
    • both quickstarts passed, including Go, TypeScript and Python indexing with scip-go v0.2.7 on Go 1.27.3.
  • Release dry run 42320732996 (the release workflow's uncached builds with this change, also before the OCR layer) passed: the release's blocking scan of all four uncached native builds, and both quickstart smokes. The earlier dry run without this change failed the server scan on the two CVEs above.
  • A local arm64 build of the go-builder stage with Go 1.27.3 built scip-go v0.2.7.

AI assistance in the code (leave one; writing this description with AI is fine):

  • AI-generated (an agent wrote most of the diff): Claude Code. The checksums were read from go.dev and nodejs.org, and npm 10.9.9's tar range from the npm registry.

  • I can explain every line of this diff and how it interacts with the rest of Loom.

Checklist

  • make format-check, make lint, make typecheck and make test-unit pass; the integration suite passes if server behaviour changed.
  • Generated files are regenerated in this PR, not by hand: none are affected.
  • A new migration is additive and numbered after the latest on main; no merged migration is edited.
  • A behaviour change to any file a plugin ships bumps both plugin manifests' version: none.
  • The frontend builds, if frontend/ changed: unchanged.
  • Docs under docs/ describe the system as it now is, and this description names any operator steps and wire changes.
  • Repository text has no dates, people, host names, internal namespaces, ticket or decision numbers.
  • Commits are signed off (git commit -s), as CONTRIBUTING.md asks.

🤖 Generated with Claude Code

zlareb1 and others added 11 commits November 7, 2026 09:46
….27.3, Node 22.23.4

A release dry run's scan of the server image failed on CVE-2025-68121 (crypto/tls in Go 1.23.4's toolchain binaries) and CVE-2026-59873 (node-tar 7.5.11 in the npm Node 22.23.2 bundles). Both have fixed releases, and the release's scan refuses a critical CVE with a fix.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…y run on a fixed critical CVE

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
… request or a push

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…a failed smoke no longer skips the scans

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
… pin a fix may move

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
… doc reads a dispatched run

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
… a release does

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…for a run from the past week

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…ommand is one line

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…actor's follows

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
@zlareb1
zlareb1 force-pushed the fix/image-critical-cves branch from e9aaea8 to 108dc34 Compare November 7, 2026 09:46
@zlareb1
zlareb1 merged commit 897fe4b into main Nov 7, 2026
36 of 38 checks passed
@zlareb1
zlareb1 deleted the fix/image-critical-cves branch November 7, 2026 10:24
@zlareb1 zlareb1 mentioned this pull request Nov 12, 2026
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant