Skip to content

[FIX] go.mod: build with Go 1.26.11 and golang.org/x/mod v0.40.0 to fix 3 HIGH CVEs - #23

Merged
ruiztulio merged 1 commit into
OrchestSh:masterfrom
vauxoo-dev:master-xmod-0.40-moy
Nov 26, 2026
Merged

ruiztulio merged 1 commit into
OrchestSh:masterfrom
vauxoo-dev:master-xmod-0.40-moy

Conversation

@moylop260

Copy link
Copy Markdown
Contributor

What this fixes

Trivy flags the entrypoint binary of release v0.0.0-alpha.11 (installed by installer.sh as /entrypoint in the Vauxoo images) with 3 HIGH findings. Reproduced in the container_scanning/Trivy report of the image quay.io/vauxoo/islamicrelief:islamicrelief-19.0-0f1de33ca4 (target entrypoint, scanner gobinary): HIGH=11 in the whole image, 3 of them in this binary.

CVE Severity Package in the binary Installed Fixed What it is
CVE-2026-56864 HIGH golang.org/x/mod v0.21.0 v0.40.0 sumdb: integrity bypass
CVE-2026-56865 HIGH golang.org/x/mod v0.21.0 v0.40.0 sumdb/tlog: supply chain
CVE-2026-111943 HIGH Go stdlib v1.26.9 1.26.10 / 1.27.3 crypto/x509: man-in-the-middle with untrusted certificates
CVE-2026-97054 MEDIUM Go stdlib v1.26.9 1.26.11 / 1.27.4 also fixed by this build

The findings come from the Go version and modules compiled into the static binary; no Go toolchain is installed in the images, so there is nothing to uninstall: the binary has to be rebuilt.

Changes

  • golang.org/x/mod v0.21.0 -> v0.40.0 (it requires go 1.25).
  • toolchain go1.26.11, so the build does not depend on which patch release the release workflow downloads.

The code only imports golang.org/x/mod/semver (utils/odoo.go), so the vulnerable sumdb packages are not called; the bump removes the finding anyway.

Verified

  • go build, go vet and go test ./... with golang:1.26 (go1.26.11): pass.
  • trivy rootfs --scanners vuln --severity HIGH,CRITICAL on the rebuilt binary: 0 vulnerabilities (before: the 3 HIGH above, from the image report).

Needs after merge

A new tag (e.g. v0.0.0-alpha.12) so release.yml publishes the binary, and an image rebuild: installer.sh always takes the latest release.

…ix 3 HIGH CVEs

The entrypoint binary of release v0.0.0-alpha.11, installed in the
Vauxoo images by installer.sh as /entrypoint, is flagged by Trivy
(gobinary scanner, target "entrypoint") in the image
quay.io/vauxoo/islamicrelief:islamicrelief-19.0-0f1de33ca4:

- golang.org/x/mod v0.21.0: CVE-2026-56864 (sumdb: integrity bypass)
  and CVE-2026-56865 (sumdb/tlog: supply chain), fixed in v0.40.0.
  The code only imports golang.org/x/mod/semver (utils/odoo.go), so
  the vulnerable packages are not called, but the version is flagged.
- Go stdlib v1.26.9: CVE-2026-111943 (crypto/x509, man-in-the-middle
  with untrusted certificates), fixed in 1.26.10 and 1.27.3, and
  CVE-2026-97054 (MEDIUM), fixed in 1.26.11 and 1.27.4.

Raise x/mod to v0.40.0 (it requires go 1.25) and pin the toolchain to
go1.26.11, so the build is not tied to whatever patch release the
release workflow downloads.

Evidence: go build with golang:1.26 (go1.26.11) and go vet and go test
pass; Trivy 'rootfs --scanners vuln --severity HIGH,CRITICAL' on the
rebuilt binary reports 0 vulnerabilities.
@moylop260
moylop260 marked this pull request as ready for review November 26, 2026 21:16
@moylop260

Copy link
Copy Markdown
Contributor Author

@ruiztulio Could you check it, please?

@ruiztulio
ruiztulio merged commit 6df695b into OrchestSh:master Nov 26, 2026
3 checks passed
@ruiztulio
ruiztulio deleted the master-xmod-0.40-moy branch November 26, 2026 22:08
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.

2 participants