Skip to content

deps: bump golang.org/x/crypto to v0.55.0 in both modules - #1180

Closed
bitcoin-coder-bob wants to merge 2 commits into
masterfrom
bob/x-crypto-bump
Closed

deps: bump golang.org/x/crypto to v0.55.0 in both modules#1180
bitcoin-coder-bob wants to merge 2 commits into
masterfrom
bob/x-crypto-bump

Conversation

@bitcoin-coder-bob

@bitcoin-coder-bob bitcoin-coder-bob commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Bumps golang.org/x/crypto to v0.55.0 in every module that lists it.

Why

The Trivy scan (Build and Scan) has been red on master and on every open branch since 2026-09-01, flagging CVE-2026-56854 in golang.org/x/crypto/ssh (authentication bypass due to unenforced source-address restrictions), fixed in 0.55.0. The version did not change in any recent commit; the scan flipped when the vulnerability database picked up the newly published CVE.

What

  • root module: indirect dependency via macaroon-bakery, bumped in go.mod/go.sum
  • pkg/arkd-wallet: direct dependency, bumped in its go.mod/go.sum
  • pkg/ark-cli, pkg/ark-lib, pkg/client-lib, pkg/client-wallet, pkg/errors, pkg/kvdb, pkg/macaroons: bumped as well. The scanned image ships the ark CLI built from pkg/ark-cli, whose module graph still resolved v0.53.0 after the first two bumps, which is why the scan stayed red on the first commit. The rest are bumped so every module in the repo agrees on one version.
  • go get also moved x/text, x/tools and x/term forward one minor each as transitive updates

No code changes.

Test plan

  • go build ./... in every module
  • make test-pkg (all pkg/* suites) and the internal/interface/grpc/... suites, which reach x/crypto
  • root go mod tidy leaves no drift, which is what check-go-sync verifies
  • Build and Scan green on this PR (00bd95d)

Once merged, #1160, #1161, #1162 and #1174 each need a master merge to clear the same check.

Clears CVE-2026-56854 (x/crypto/ssh authentication bypass) flagged by the
Trivy scan on every branch since 2026-09-01. Indirect in the root module via
macaroon-bakery, direct in arkd-wallet.
@coderabbitai

coderabbitai Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 9 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: 47c0d7f5-1cc8-4dab-b2cc-cb1e8492f40f

📥 Commits

Reviewing files that changed from the base of the PR and between f863e48 and 00bd95d.

⛔ Files ignored due to path filters (9)
  • go.sum is excluded by !**/*.sum
  • pkg/ark-cli/go.sum is excluded by !**/*.sum
  • pkg/ark-lib/go.sum is excluded by !**/*.sum
  • pkg/arkd-wallet/go.sum is excluded by !**/*.sum
  • pkg/client-lib/go.sum is excluded by !**/*.sum
  • pkg/client-wallet/go.sum is excluded by !**/*.sum
  • pkg/errors/go.sum is excluded by !**/*.sum
  • pkg/kvdb/go.sum is excluded by !**/*.sum
  • pkg/macaroons/go.sum is excluded by !**/*.sum
📒 Files selected for processing (9)
  • go.mod
  • pkg/ark-cli/go.mod
  • pkg/ark-lib/go.mod
  • pkg/arkd-wallet/go.mod
  • pkg/client-lib/go.mod
  • pkg/client-wallet/go.mod
  • pkg/errors/go.mod
  • pkg/kvdb/go.mod
  • pkg/macaroons/go.mod

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

The image also ships the ark CLI built from pkg/ark-cli, whose module graph
still resolved v0.53.0, so the scan stayed red after the root and arkd-wallet
bumps. Every module that lists x/crypto now pins v0.55.0.
@bitcoin-coder-bob
bitcoin-coder-bob marked this pull request as ready for review September 3, 2026 18:21

@arkana-ai-bot arkana-ai-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Arkana review — dependency bump, CVE-2026-56854

No protocol-critical paths touched; no VTXO/signing/forfeit/round/exit logic changed. CI is fully green (Build and Scan, check-go-sync, postgres/redis, unit tests).

What the change does

Bumps golang.org/x/crypto to v0.55.0 across all nine Go modules in this repo, with transitive minor bumps to x/net, x/sys, x/text, x/term, x/mod, x/sync, and x/tools. The go.sum hash lines are consistently paired (h1: + /go.mod h1:) for every changed entry.

Findings

[Cross-repo — go-sdk] /srv/arkana/repos/go-sdk/go.mod still carries golang.org/x/crypto v0.52.0, which falls below the fix threshold. The same Trivy CVE will flag the go-sdk image once scanning runs against it. A companion PR in the go-sdk repo is needed.

[pkg/arkd-wallet/go.mod — minor] github.com/btcsuite/btcd/address/v2 v2.0.0 was demoted from direct to indirect. The PR description says no code changes were made, so this looks like go mod tidy correcting a pre-existing stale marker rather than a silent removal of a used import. CI building cleanly is the main evidence here. If this module does directly import anything from btcd/address/v2, the tidy step would have left the direct marker; since it didn't, the import is transitive. Fine, but worth a quick grep to be sure: grep -r '"github.com/btcsuite/btcd/address/v2' pkg/arkd-wallet/.

[pkg/ark-lib/go.mod — minor] golang.org/x/sync was not bumped here (stays at v0.20.0) while every other module moved to v0.22.0. This is harmless — MVS will select the highest version needed across the build — but it leaves the go.mod entry stale relative to what is actually selected. A follow-up tidy pass on pkg/ark-lib would clean it up.

[CVE surface note] CVE-2026-56854 is in x/crypto/ssh (authentication bypass). The arkd modules that pull this in most directly are the root module (via macaroon-bakery) and pkg/macaroons. The bump is the right action regardless of whether SSH is exercised at runtime — leaving a known auth-bypass in the binary is not acceptable for a money-custody system.

Summary

Core fix is correct and complete for this repo. Blocking on the go-sdk companion PR is recommended before marking the CVE fully remediated.

@arkana-ai-bot arkana-ai-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Arkana automated review — #1180

Dependency bump to clear CVE-2026-56854 (x/crypto/ssh authentication bypass). Scan picked up the gap because the ark-cli module still resolved v0.53.0 via its own module graph; this PR pins every module in the monorepo to v0.55.0, which is the right fix.

Checked:

  • Root go.mod/go.sum, pkg/ark-cli/go.mod/go.sum, and the remaining modules all consistently pin v0.55.0. No module is left behind.
  • Companion bumps (x/net, x/sys, x/sync, x/text, x/term, x/tools, x/mod) are consistent minor version increments — nothing unusual.
  • No logic changes, only dependency graph updates.

Ready to merge. This is a security patch; expedite review.

@altafan altafan closed this Sep 4, 2026
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