deps: bump golang.org/x/text to v0.39.0 (CVE-2026-56852) - #1164
Conversation
|
Important Review skippedNo new commits to review since the last review. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
WalkthroughChangesThe root and six nested Go modules update indirect Dependency version alignment
Estimated code review effort: 1 (Trivial) | ~5 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@arkana-ai-bot @coderabbitai review |
|
I hit my usage limit before I could answer this. Re-ping me in a bit and I'll pick it up. |
|
✅ Action performedReview finished.
|
|
I hit my usage limit before I could answer this. Re-ping me in a bit and I'll pick it up. |
1 similar comment
|
I hit my usage limit before I could answer this. Re-ping me in a bit and I'll pick it up. |
arkana-ai-bot
left a comment
There was a problem hiding this comment.
Dependency-only bump — no code, no protocol surface. Verified:
- Diff is exclusively
go.mod/go.sumacross 7 modules; no Go source, no proto, no config. - The
golang.org/x/textv0.39.0 hash (h1:UbZz4pLOvn600D6Oh6GGEI6VAmndrEBLv8/6BEXzyus=, modh1:3UwRclnC2g0TU9x8PZiyfOajCd1zaUNHF9cvqcQZ+ZM=) is byte-identical in all 7 go.sum entries — no per-module supply-chain skew. - Transitive fan-out (
x/toolsv0.47,x/modv0.37,x/syncv0.21) reaches every module that already depended on those, matching what x/text v0.39.0's owngo.modrequires. The extra bumps tox/cryptov0.53 /x/netv0.56 /x/sysv0.46 /x/termv0.44 only show up in the modules whose other transitive deps force MVS to pick them (root,pkg/kvdb,pkg/macaroons);api-spec,pkg/ark-cli,pkg/arkd-wallet,pkg/client-libcorrectly keep the older ones. That asymmetry is expectedgo mod tidyoutput, not an oversight. - Root
go.modcontinues to requirex/net v0.56andx/crypto v0.53directly (not// indirect), preserving the existing require-graph shape.
Nothing to flag. check-go-sync and the build-time verifications the description lists are the right gates; nothing in this diff can regress protocol behaviour on its own. Cannot independently verify the CVE-2026-56852 advisory content from this environment, but the fixed-version claim is consistent with x/text's own module manifest (evidenced by the transitive bumps landing exactly as x/text v0.39.0's go.mod requires).
Minor note, not blocking: leaving pkg/ark-cli, pkg/arkd-wallet, pkg/client-lib, api-spec on the older x/crypto/x/net/x/sys/x/term while root/kvdb/macaroons move forward is technically fine but means future Trivy findings in those packages would still bite the sub-modules. If a follow-up unifies the graph, doing it as a separate PR keeps this one minimal and easy to cherry-pick, which is what the description already optimises for.
Resolves the go.mod/go.sum conflict from the x/text CVE bump (#1164). Took master's dependency state and re-ran go mod tidy so the branch's own cel-go requirement is reconciled rather than dropped.
Trivy started failing on every open PR with
CVE-2026-56852(HIGH): anorm.Iterin
golang.org/x/textcan enter an infinite loop on malformed input. Fixed inv0.39.0.
The advisory landed after master's last scan, so master is affected too and will
go red on its next push.
golang.org/x/textis an indirect dependency in 7 ofthe 9 modules, so all 7 move together to keep
check-go-synchappy.The Docker image that Trivy scans builds two binaries,
arkdfrom the rootmodule and
arkfrompkg/ark-cli, which is why the scan reported the findingtwice.
Transitive bumps
golang.org/x/textv0.39.0 requiresx/toolsv0.47.0,x/modv0.37.0 andx/syncv0.21.0 in its owngo.mod, which in turn pull upx/cryptov0.53.0,x/netv0.56.0,x/sysv0.46.0 andx/termv0.44.0 in the root module. That isminimal version selection, not a deliberate widening of scope. No code changes,
only
go.modandgo.sum.Verification
go vet ./...clean.make lintreports 0 issues.go test ./internal/core/...passes, pluspkg/ark-lib,pkg/errors,pkg/macaroonsandpkg/kvdb.go mod tidyis idempotent, socheck-go-syncpasses.The container-backed suite was not run, since nothing but dependency versions
changed.
Note on overlap
This same commit is already cherry-picked onto #1160, #1161, #1162 and #1163 so
those PRs are not blocked waiting on this one. Whichever lands first will make
the others conflict on
go.sum. Resolve withgit rebase masterfollowed bygo mod tidyrather than hand-merging the hash lines.Summary by CodeRabbit