Skip to content

fix(deps): move to Go 1.27.4, x/net 0.62.0 and brotli 1.2.7 - #270

Merged
TooonyChen merged 2 commits into
mainfrom
bugfix/deps-reachable-vulns
Nov 29, 2026
Merged

TooonyChen merged 2 commits into
mainfrom
bugfix/deps-reachable-vulns

Conversation

@TooonyChen

@TooonyChen TooonyChen commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

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 (its go.mod and go.sum conflicted 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.

  • go directive 1.27.3 → 1.27.4
  • golang.org/x/net v0.60.0 → v0.62.0
  • github.com/andybalholm/brotli v1.2.2 → v1.2.7 (indirect)

govulncheck reports two vulnerabilities on main that the code can reach:

  • GO-2026-6888, excessive memory allocation when decompressing crafted brotli streams, in brotli@v1.2.2, fixed in v1.2.7. brotli is in the build through internal/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, and sshx.Classify → brotli.decodeError.Error.
  • GO-2026-6859, HTTP/1 server crash due to a MaxBytesReader header race, in net/http@go1.27.3, fixed in go1.27.4. The app is reported through the net/http symbols 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.md and docs/zh-CN/development.md now says 1.27.4, as go.mod requires it. The workflows read the version from go.mod (go-version-file), so they need no change. CHANGELOG.md is not touched: only release commits write it.

Refs #231

Testing

govulncheck (golang.org/x/vuln v1.10.0, go run golang.org/x/vuln/cmd/govulncheck@latest ./...), run with the matching Go toolchain:

  • main (go1.27.3): Your code is affected by 2 vulnerabilities from 1 module and the Go standard library. (GO-2026-6888, GO-2026-6859), plus 3 vulnerabilities in modules you require (GO-2026-6866, GO-2026-6860, GO-2026-5932).
  • this branch (go1.27.4): 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 diff
  • go build ./..., GOOS=windows go build ./..., GOOS=darwin go build ./...: pass
  • go vet ./..., GOOS=windows go vet ., GOOS=darwin go vet ., go tool mygo vet, gofmt -l .: clean
  • go test -race -count=1 -timeout 30m ./...: every package passes except internal/app, where TestSSHRestoreHistory failed 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_SSH was not set). No tests were added.

🤖 Generated with Claude Code

https://claude.ai/code/session_015nMqJEvqPnRmPgi6dnraZM

kzhx666 and others added 2 commits November 29, 2026 08:05
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
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-29T08:20:17.187656Z 5301746 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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.

3 participants