Skip to content

Fix govulncheck findings and bump Go toolchain - #123

Closed
andrewkroh wants to merge 1 commit into
mainfrom
fix-govulncheck-bump-toolchain
Closed

andrewkroh wants to merge 1 commit into
mainfrom
fix-govulncheck-bump-toolchain

Conversation

@andrewkroh

@andrewkroh andrewkroh commented Oct 1, 2026 •

Copy link
Copy Markdown

Forgot that we use release-1.28 branch. Closing

govulncheck reports 7 reachable vulnerabilities in grpc, x/net, x/text, pgx and spdystream. Our code calls the affected functions, for example through http.Client.Do, sql.Open and remotecommand.

Upgrade each module to a release that has the fix. x/text v0.39.0 requires x/net v0.56.0, so x/net goes to v0.56.0 and not to the v0.55.0 that the advisory lists.

Also raise the toolchain directive to go1.26.8. The old toolchain go1.25.6 is no longer a supported Go release and it does not have the standard library security fixes. The minimum "go" directive is unchanged.

govulncheck now reports no vulnerabilities that the code calls.

[git-generate]
go get \
  google.golang.org/grpc@v1.83.1 \
  golang.org/x/text@v0.39.0 \
  golang.org/x/net@v0.56.0 \
  github.com/jackc/pgx/v5@v5.9.2 \
  github.com/moby/spdystream@v0.5.1
go mod edit -toolchain=go1.26.8
go mod tidy

(For the uninitiated, git-generate is a tool for recreating mechanical commits.)

govulncheck reports 7 reachable vulnerabilities in grpc, x/net, x/text,
pgx and spdystream. Our code calls the affected functions, for example
through http.Client.Do, sql.Open and remotecommand.

Upgrade each module to a release that has the fix. x/text v0.39.0
requires x/net v0.56.0, so x/net goes to v0.56.0 and not to the
v0.55.0 that the advisory lists.

Also raise the toolchain directive to go1.26.8. The old toolchain
go1.25.6 is no longer a supported Go release and it does not have the
standard library security fixes. The minimum "go" directive is
unchanged.

govulncheck now reports no vulnerabilities that the code calls.

[git-generate]
go get \
  google.golang.org/grpc@v1.83.1 \
  golang.org/x/text@v0.39.0 \
  golang.org/x/net@v0.56.0 \
  github.com/jackc/pgx/v5@v5.9.2 \
  github.com/moby/spdystream@v0.5.1
go mod edit -toolchain=go1.26.8
go mod tidy
@andrewkroh andrewkroh closed this Oct 1, 2026
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