Repository navigation
[FIX] go.mod: build with Go 1.26.11 and golang.org/x/mod v0.40.0 to fix 3 HIGH CVEs - #23
Merged
Merged
Conversation
…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
marked this pull request as ready for review
November 26, 2026 21:16
Contributor
Author
|
@ruiztulio Could you check it, please? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this fixes
Trivy flags the
entrypointbinary of releasev0.0.0-alpha.11(installed byinstaller.shas/entrypointin the Vauxoo images) with 3 HIGH findings. Reproduced in thecontainer_scanning/Trivy report of the imagequay.io/vauxoo/islamicrelief:islamicrelief-19.0-0f1de33ca4(targetentrypoint, scannergobinary):HIGH=11in the whole image, 3 of them in this binary.golang.org/x/modsumdb: integrity bypassgolang.org/x/modsumdb/tlog: supply chainstdlibcrypto/x509: man-in-the-middle with untrusted certificatesstdlibThe 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/modv0.21.0 -> v0.40.0 (it requiresgo 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 vulnerablesumdbpackages are not called; the bump removes the finding anyway.Verified
go build,go vetandgo test ./...withgolang:1.26(go1.26.11): pass.trivy rootfs --scanners vuln --severity HIGH,CRITICALon 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) sorelease.ymlpublishes the binary, and an image rebuild:installer.shalways takes the latest release.