Update golang.org/x/text to v0.39.0 — last dependency with a released security fix - #732
Conversation
Fixes GO-2026-5970 reported by osv-scanner on the compiled binary. With this bump, every dependency carrying a known-fixed OSV advisory is up to date on main; a binary built from main with Go 1.26.5 now reports only advisories that have no released fix (docker/docker daemon-side ones and GO-2026-5932). Co-Authored-By: Claude Opus 5 <[email protected]>
|
as far as I can tell, GO-2026-5932 is about regarding this precise bump looks good to me 👍 |
|
could you also check with |
|
@tucksaun I tested this with Setup: govulncheck v1.6.0, Go vuln DB from 2026-07-27. I ran Result:
The only difference is govulncheck also confirms the vulnerability was actually reachable in the code, Two unrelated things the scan surfaced (out of scope for this PR, just flagging):
Happy to paste the full reports if useful. |
|
Thank you @mathieu-ducrot. |
Context
While scanning our PHP development container images with
osv-scanner(v2.4.0), we noticed the latest released binary (v5.17.1, built 2026-04-07 with Go 1.26.0) reports 56 known vulnerabilities in its embeddeddependencies — including GO-2026-5023 (CVSS 10.0) in
golang.org/x/cryptov0.49.0.Digging further, we found that
mainhas already moved past most of these since the v5.17.1 tag (x/cryptov0.53.0,x/netv0.56.0,otelv1.44.0,go-pkcs12v0.7.3…). The only remaining module carrying an advisory with areleased fix was
golang.org/x/textv0.38.0.This PR
Bumps
golang.org/x/textv0.38.0 → v0.39.0, fixing GO-2026-5970.go build .✅go test ./...✅ (all packages pass)go vet ./...✅Measured impact
We rebuilt the binary from this branch with Go 1.26.5 and scanned it:
The 6 remaining advisories have no released fix anywhere: 5 are
github.com/docker/dockerdaemon-side issues (not addressable through the Go client module) and 1 is GO-2026-5932 (x/crypto, no upstream fix yet).Friendly ask
With this merged,
mainis as clean as it can currently get. Would you consider tagging a release built with Go ≥ 1.26.5? That alone would take the binary shipped to users (and embedded in countless container images, whereevery security scan flags it) from 56 advisories down to 6 non-actionable ones. You have kindly done such releases before (#522, #485, #468).
Thanks for maintaining the CLI!