Repository navigation
fix(deps): move to Go 1.27.4, x/net 0.62.0 and brotli 1.2.7 - #270
Merged
Merged
Conversation
govulncheck, which this branch adds to CI, found two vulnerabilities the code reaches: GO-2026-6888 in brotli (reached through x/net while reading an HTTP body) and GO-2026-6859 in net/http (fixed in 1.27.4). The two x/net html advisories and the x/crypto/openpgp one were not reachable; they go with the same upgrade.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015nMqJEvqPnRmPgi6dnraZM
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Nov 29, 2026
Closed
This was referenced Nov 29, 2026
Merged
Closed
This was referenced Dec 2, 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.
Summary
The dependency bumps from #232 by @kzhx666, taken on their own: the
fix(deps)commit of that PR, re-applied on the current main (itsgo.modandgo.sumconflicted after the MyGo bump in #263), with kzhx666 as its author. Nothing else from #232 is here: no staticcheck fixes, no workflow changes, no SECURITY.md.godirective 1.27.3 → 1.27.4golang.org/x/netv0.60.0 → v0.62.0github.com/andybalholm/brotliv1.2.2 → v1.2.7 (indirect)govulncheckreports two vulnerabilities on main that the code can reach:brotli@v1.2.2, fixed in v1.2.7. brotli is in the build throughinternal/fileicons→github.com/tdewolff/font(go mod why), not through x/net as ci: harden the pipeline, fuzz the sync envelope, document the network surface #232 says. The traces govulncheck gives go through interface calls:importer.ReadText→bytes.Buffer.ReadFrom→brotli.Reader.Read, andsshx.Classify→brotli.decodeError.Error.MaxBytesReaderheader race, innet/http@go1.27.3, fixed in go1.27.4. The app is reported through thenet/httpsymbols it uses as a client (geo.Online.ipSB→http.Client.Do,cloudsync.S3,sshx.dialHTTP→http.ReadResponse, and others).Two more advisories were at module level only, in
golang.org/x/net/html(GO-2026-6866, GO-2026-6860); x/net 0.62.0 fixes them. GO-2026-5932 (golang.org/x/crypto/openpgp, unmaintained) is still reported at module level after this change; the code does not reach it. x/crypto stays at v0.58.0 here, as in #232; moving it was not tried.On top of the contributor's commit, one more: the Go version in
README.md,README.zh-CN.md,docs/en/development.mdanddocs/zh-CN/development.mdnow says 1.27.4, asgo.modrequires it. The workflows read the version fromgo.mod(go-version-file), so they need no change.CHANGELOG.mdis not touched: only release commits write it.Refs #231
Testing
govulncheck(golang.org/x/vulnv1.10.0,go run golang.org/x/vuln/cmd/govulncheck@latest ./...), run with the matching Go toolchain:Your code is affected by 2 vulnerabilities from 1 module and the Go standard library.(GO-2026-6888, GO-2026-6859), plus3 vulnerabilities in modules you require(GO-2026-6866, GO-2026-6860, GO-2026-5932).Your code is affected by 0 vulnerabilities.0 vulnerabilities in packages you import and 1 vulnerability in modules you require(GO-2026-5932).With go1.27.4 on Linux amd64:
go mod verify: all modules verified;go mod tidy -diff: no diffgo build ./...,GOOS=windows go build ./...,GOOS=darwin go build ./...: passgo vet ./...,GOOS=windows go vet .,GOOS=darwin go vet .,go tool mygo vet,gofmt -l .: cleango test -race -count=1 -timeout 30m ./...: every package passes exceptinternal/app, whereTestSSHRestoreHistoryfailed once (transport did not resize: [0 0]). That test is flaky in this container regardless of this change: run 40 times alone, it failed 11 times on main with go1.27.3 and 12 times on this branch.Not tested: the built app on Windows or macOS, and a connection to a real SSH server (
FINALLYSHELL_TEST_SSHwas not set). No tests were added.🤖 Generated with Claude Code
https://claude.ai/code/session_015nMqJEvqPnRmPgi6dnraZM