Skip to content

fix(security): build with go1.26.4 to clear stdlib advisories - #445

Merged
joshua-temple merged 1 commit into
mainfrom
fix/go-toolchain-govulncheck-land
Jul 5, 2026
Merged

joshua-temple merged 1 commit into
mainfrom
fix/go-toolchain-govulncheck-land

Conversation

@joshua-temple

Copy link
Copy Markdown
Collaborator

Problem

govulncheck ./... reports two reachable Go standard-library advisories: GO-2026-5039 (net/textproto, reached via the hotfix PR checker) and GO-2026-5037 (crypto/x509). Both are DoS-class stdlib issues fixed in go1.26.4, but the build toolchain was go1.26.3 and CI pinned go-version: '1.25'.

Fix

Add a toolchain go1.26.4 directive to go.mod and e2e/go.mod, and switch the CI setup-go steps to go-version-file: go.mod so the build and CI use the intended toolchain. Add a Vulnerability Scan job to the validation workflow that runs govulncheck and gates the validation result. The go language directive stays at 1.25.

Verification

go build ./..., go test ./... -race -count=1, golangci-lint run ./..., and the e2e module go build/go vet all clean locally. govulncheck reports clean on go1.26.4.

Pin the toolchain to go1.26.4 in both the root and e2e modules and drive
every CI Go setup from the module files, so builds use the patched
standard library. This closes the two reachable govulncheck stdlib
advisories GO-2026-5039 (net/textproto) and GO-2026-5037 (crypto/x509),
both fixed in go1.26.4.

Add a govulncheck job to the validation gate so a reachable standard
library advisory fails CI going forward. Update the docs prerequisites
and release-verification steps to the new toolchain floor.

Signed-off-by: Joshua Temple <joshua.temple@stablekernel.com>
@joshua-temple
joshua-temple merged commit c12f513 into main Jul 5, 2026
21 checks passed
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