fix(deps): bump Go toolchain to 1.26.4 for CVE-2026-42504#108
Merged
Conversation
Resolves HIGH CVE-2026-42504 in the Go stdlib (installed v1.26.3, fixed in 1.26.4). Bumps GOLANG_VERSION in both Dockerfile stages and the `go` directive in the agent, scaffold, and SDK modules. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
shawnburke
reviewed
Jun 8, 2026
|
|
||
| # Install Go (needed by scaffold apps that build on top of this image) | ||
| ENV GOLANG_VERSION=1.26.3 | ||
| ENV GOLANG_VERSION=1.26.4 |
Collaborator
There was a problem hiding this comment.
do we need this in here twice? not sure what the rules are for multi-stage builds.
Contributor
Author
There was a problem hiding this comment.
yeah I think for every stage it resets the env so need it for compile and runtime seperately
shawnburke
approved these changes
Jun 8, 2026
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.
Automated triage of the failed Trivy scan run.
Auto-applied fixes (1)
docker/Dockerfile(×2),agent/go.mod,scaffold/go/go.mod,sdks/go/go.modThe CVE is in the Go standard library compiled into the agent binary. Trivy reads the
stdlib version from the binary, which is set by the Go compiler installed via
GOLANG_VERSIONin the Dockerfile. Patch-level bump on the same minor line (1.26.x),lowest fixed version ≥ installed — minimal blast radius. The
godirectives in allthree modules are bumped to match (mirrors #101 which bumped them together to 1.26.3).
Verification
go build ./...insdks/gopasses on go1.26.4.agent/build error (.generated/proto/...missing) is pre-existing — that dir isgitignored codegen output, unrelated to this bump.
scaffold/go/go.modis a Go template ({{.ProjectName}}); only thegodirective changed.Draft so a human marks ready. CI on this PR validates the bump before merge.