Repository navigation
Fix: Bump golang.org/x/net to v0.62.0 for CVE-2026-78661 - #936
Merged
Merged
Conversation
Trivy fails the build on a HIGH finding with a fix: a denial of service in golang.org/x/net/html, fixed in v0.62.0. x/net is an indirect dependency (proxy -> otlptracehttp -> grpc -> x/net/trace); nothing imports x/net/html. go get also moved x/crypto to v0.58.0, x/sync to v0.24.0, x/sys to v0.49.0 and x/text to v0.43.0, which x/net v0.62.0 requires. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: DAVID BOAZ <[email protected]>
boazdavid
commented
Nov 8, 2026
boazdavid
left a comment
Collaborator
Author
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 1 (glm, user of @boazdavid) | GLM rits/zai-org/glm-5-3 via Claude Code 2.1.241 | offload-review skill, @boazdavid's session | fresh | 1 of 2 | 1 of 2 | a7d8161299b3 |
approve |
Verdict: approve
Findings
None. I found no defect in this PR.
Non-blocking
- Verification limit. Go is not installed on this machine, and web search failed in this session. So I could not compile, run
go mod verify, or read the advisory for CVE-2026-78661. The claim "fixed in v0.62.0" comes from the commit message and the Trivy gate, not from an external source I could read. The CI build and the Trivy job (.github/workflows/ci.yaml:167) will confirm both within the pipeline. - Side-effect bumps touch directly used packages.
go get golang.org/x/[email protected]also movedx/cryptoto v0.58.0 andx/syncto v0.24.0. This repo uses them directly:x/crypto/argon2intenant/password.go:11andx/sync/singleflightinproxy/proxy.go:53andcomponents/offload/extract_llm.go:13. The commit message names these moves, and both are patch-level bumps in stable packages. I expect no behavior change, but the release suite is the real check. x/netis not imported by any file in this repo. The commit message says the same:x/netis linked only throughotlptracehttp→grpc. The fix therefore matters for the Trivy gate, not for code this repo owns.
What I checked
- Read
CLAUDE.mdanddocs/design.mdfor the repo rules. - Read the full diff (
git diff 363f0f1e..HEAD). It changesgo.mod(10 lines) andgo.sum(24 lines) only. One commit,a7d81612, signed off (Signed-off-by) and attributed (Assisted-By:), conventional-commit title. All per the commit rules inCLAUDE.md. - Version coherence. Every bumped module in
go.mod(x/netv0.62.0,x/cryptov0.58.0,x/syncv0.24.0,x/sysv0.49.0,x/textv0.43.0) has both anh1:and a/go.modline ingo.sum. The old versions (v0.60.0, v0.57.0, v0.23.0, v0.48.0, v0.42.0,x/toolsv0.50.0) are gone fromgo.sum.x/toolsv0.51.0 appears ingo.sumonly, which is correct for an indirect module-graph entry. - Scope of the bump. Grepped every
*.gofile: nothing importsgolang.org/x/net. Direct use of the companion bumps is limited toargon2andsingleflightas listed above. No vendor directory, no secondgo.mod, and no CI or deploy file pins anx/version, so nothing else needed the same bump. - The Trivy claim.
.github/workflows/ci.yaml:167-177runs a filesystem scan withseverity: CRITICAL,HIGH,exit-code: 1, andignore-unfixed: true. This matches the commit message: a HIGH finding with a fix fails the build, and the bump is the fix path. - Rules from
CLAUDE.md. No behavior change for users: no source file changed, and the bumped packages are not behavior-relevant to the proxy beyond what CI tests. No data-dependence change, sodocs/data-dependence.mdneeds no row update. - Limits I could not cover: no compile, no tests, no
go mod verify, no external advisory lookup (Go not installed; web search unavailable). I state this here because the review instructions ask for it, not because I found a defect in it.
boazdavid
commented
Nov 8, 2026
boazdavid
left a comment
Collaborator
Author
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 2 (glm, user of @boazdavid) | GLM rits/zai-org/glm-5-3 via Claude Code 2.1.241 | offload-review skill, @boazdavid's session | fresh | 2 of 2 | 1 of 2 | a7d8161299b3 |
approve |
Verdict: approve
Findings
None.
Non-blocking
-
PR body (Why / What) — the bump moves five modules in
go.sum, not four.- The body lists
x/crypto,x/sync,x/sys,x/text. The diff also movesgolang.org/x/toolsv0.50.0 → v0.51.0 (go.sum:205-206). x/textv0.43.0 requiresx/toolsv0.51.0, sogo get golang.org/x/[email protected]pulls it. It stays out ofgo.modbecause nothing imports it. The hashes match the checksum database. So the change itself is correct and expected. Only the count in the description is wrong.- Fix: add
x/toolsv0.51.0 to the list in the PR body.
- The body lists
-
PR body (Why) — the import chain "otlptracehttp, which imports grpc, which imports x/net/trace" is wrong at the first link.
otlptracehttpv1.47.0 does not importgrpc. I read the import block ofclient.goat that tag. It usesnet/httpand protobuf only.x/netenters the module graph throughgithub.com/maximhq/bifrost/corev1.7.0, whosego.modrequiresx/netas an indirect dependency.- The conclusion still holds. No file in this repo imports any
golang.org/x/netpackage. The vulnerable packagex/net/htmlis not reached from this repo's code. - Fix: correct the sentence in the PR body, or drop it. Trivy scans the module list either way.
What I checked
- The diff touches only
go.modandgo.sum. Six version pairs change:x/netv0.62.0,x/cryptov0.58.0,x/syncv0.24.0,x/sysv0.49.0,x/textv0.43.0,x/toolsv0.51.0. - All 12 new
go.sumhashes matchsum.golang.org. Go is not installed here, so these lookups stand in forgo mod verifyon the changed entries. Every hash matched. - The dependency state is what
go get golang.org/x/[email protected]plusgo mod tidyproduces:x/netv0.62.0 requiresx/cryptov0.58.0,x/sysv0.49.0,x/textv0.43.0 (verified from its publishedgo.mod).x/textv0.43.0 requiresx/toolsv0.51.0 andx/syncv0.24.0.x/termv0.47.0 is required byx/net'sgo.modbut has nogo.sumentry. That is correct. No package of it is imported, and graph pruning needs no hash for it. The same held before the bump.
- The CVE is real. NVD lists CVE-2026-78661: a denial of service in
golang.org/x/net/html, O(n²) text coalescing inaddText/fosterParent, severity HIGH, fixed in v0.62.0. The fix commit 4af4fce (2026-10-20) is in the v0.61.0...v0.62.0 compare on golang/net. - The Trivy claim matches CI.
.github/workflows/ci.yaml:167runs a filesystem scan withseverity: CRITICAL,HIGHandexit-code: '1'. A HIGH finding with a fix fails the job. - Reach of the vulnerable code: I grepped every
.gofile in the repo. No file importsgolang.org/x/net. So no repo code reachesx/net/html. - Risk of the other bumps for directly imported packages:
x/crypto/argon2(tenant/password.go): v0.58.0 adds a loong64 assembly speedup. No output change, and not on this platform.x/sync(proxy/proxy.go,components/offload/extract_llm.go,dash/*): v0.24.0 is one errgroup cleanup commit. No semantic change.singleflightis unchanged.
- Toolchain:
go.modsays go 1.26.4.x/netv0.62.0 needs go 1.26.0. The Dockerfile builds withgolang:1.26. Compatible. - No other file needed an update. The repo has one
go.mod.THIRD-PARTY-NOTICESdoes not pin module versions. - Repo rules: the PR changes no feature, so no data-dependence row is due. The PR is authored by the human owner, so the behavior-change permission rule is satisfied by authorship. The change and its reason are named at the top of the PR body.
- Limits: I did not run
go build,go vet, orgo test— live tests are not approved and Go is not installed. I did not verify the CI runs or the Trivy database update date. WebSearch failed in this session; I used NVD, the Go module proxy, the checksum database, and GitHub compares instead. - Per the round 1 rule, I did not read the PR comments or the other review before posting this.
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.
Why
Trivy fails the CI
trivyjob on every PR, and it will fail onmainat its next run:golang.org/x/netv0.60.0, CVE-2026-78661, severity HIGH, fixed in v0.62.0. A denial of service ingolang.org/x/net/html.mainpassed on 2026-11-06. The vulnerability database updated after that.What
go get golang.org/x/[email protected]andgo mod tidy. Onlygo.modandgo.sumchange.x/netis an indirect dependency: the proxy importsotlptracehttp, which importsgrpc, which importsx/net/trace. Nothing in this repo importsx/net/html, so the code probably does not reach the vulnerable function. Trivy scans the module list and does not look at the call graph.x/netv0.62.0 requires them:x/cryptov0.57.0 to v0.58.0,x/syncv0.23.0 to v0.24.0,x/sysv0.48.0 to v0.49.0,x/textv0.42.0 to v0.43.0.Tests
go build ./...,go vet ./...andgo test ./...give the same results asmain:maintoo, on a macOS laptop:TestRateFillTableAndPrice(a float-rounding test), four install and settings tests incontext-guru-plugin,TestPreflight*(macOS bash 3.2), and thesave-moregoldens whenANTHROPIC_*variables are set in the shell. None of them touchx/net.TestALateFirstByte*,TestDashboardAddsNoRequestLatency*) depend on machine load. CI is the reference for them.Assisted-By: Claude (Anthropic AI) [email protected]