Skip to content

deps: bump golang.org/x/crypto to v0.55.0 and golang.org/x/text to v0.41.0 - #431

Merged
somanshreddy merged 1 commit into
mainfrom
10-07-bump_x_crypto_text
Oct 7, 2026
Merged

somanshreddy merged 1 commit into
mainfrom
10-07-bump_x_crypto_text

Conversation

@somanshreddy

Copy link
Copy Markdown
Collaborator

Scope

Surfaces: CLI dependencies | Module: Build

Summary

govulncheck (Go's vulnerability database) reports six advisories in two indirect dependencies, golang.org/x/crypto and golang.org/x/text. Dependabot raises none of them, because GitHub's advisory database has these either unreviewed or not at all. This bumps both modules as far as the pinned Go 1.25 toolchain allows, which clears three of them.

Fix

  • golang.org/x/crypto v0.52.0 to v0.55.0: fixes GO-2026-6303.
  • golang.org/x/text v0.37.0 to v0.41.0: fixes GO-2026-5970 and GO-2026-6629.
  • go mod tidy also moves golang.org/x/sys (v0.47.0), golang.org/x/term (v0.45.0) and golang.org/x/sync (v0.22.0) to what those versions require. The x/sys functions the CLI calls (file locks and detached-process attributes for the update check) are unchanged between the two versions.

go.mod keeps go 1.25.13 with no toolchain line, as RELEASE.md requires.

Left on purpose:

  • GO-2026-6354 and GO-2026-6355 are in x/crypto/ssh, which the CLI imports but never calls. They are fixed only in v0.56.0, which needs Go 1.26, so they wait for a toolchain bump.
  • GO-2026-5932 (x/crypto/openpgp, via the self-update library) has no fix, and stays on CI's existing allowlist with its rationale.

Testing

make lint (also for Windows and macOS) and make test pass, and the CLI builds for Linux, macOS and Windows. govulncheck before: six advisories; after: only the three above.

🤖 Generated with Claude Code

@somanshreddy
somanshreddy force-pushed the 10-07-bump_x_crypto_text branch from 7ad1e83 to 139c237 Compare October 7, 2026 23:39

@jrusso1020 jrusso1020 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Approving at 139c237b. I re-ran govulncheck before and after the bump, and the PR's claims hold.

govulncheck, origin/main vs this head

I ran govulncheck v1.1.4, built with Go 1.25.13 (the go.mod toolchain), with -show verbose ./....

Advisory Module main This PR
GO-2026-5932 x/crypto/openpgp called (via go-selfupdate), no fix unchanged, still allowlisted in ci.yml
GO-2026-6303 x/crypto imported, not called gone (fixed in v0.55.0)
GO-2026-6354 x/crypto/ssh imported, not called imported, not called
GO-2026-6355 x/crypto/ssh imported, not called imported, not called
GO-2026-6629 x/text module only gone (v0.41.0)
GO-2026-5970 x/text module only gone (fixed in v0.39.0)

The ssh claim checks out. govulncheck lists 6354 and 6355 under "Package Results" only, meaning the package is imported but no vulnerable symbol is reachable from this code. The import chain is cmd/heygen → go-selfupdate → code.gitea.io/sdk/gitea → x/crypto/ssh. x/crypto v0.56.0's go.mod says go 1.26.0, so it really does need the toolchain bump.

go.sum and the bump

  • go mod verify reports all modules verified, and go mod tidy produces no diff. The go.sum diff swaps exactly the old and new hashes for the five modules, with no leftovers.
  • go 1.25.13 with no toolchain line, as RELEASE.md requires.
  • x/sys v0.45 → v0.47: the CLI uses Flock, CloseOnExec, LockFileEx and UnlockFileEx, plus some constants and types. The function signatures are identical in both versions.
  • It builds for linux, darwin and windows, and go test ./... passes.

— Rames

@terencechotai2-commits terencechotai2-commits 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.

Reviewed at 139c237. Looks good. Nothing to change.

Verified locally (Go 1.25.13):

  • go.mod: still go 1.25.13, with no toolchain line. Only x/crypto, x/text, x/sys, x/term and x/sync move.

  • Module consistency: go mod verify passes, and go mod tidy leaves go.mod and go.sum unchanged.

  • govulncheck, origin/main vs this head:

    main PR
    called (symbol level) GO-2026-5932 GO-2026-5932
    imported, not called GO-2026-6354, -6355, -6303, -6629, -5970 GO-2026-6354, -6355
    • GO-2026-6303 (fixed in x/crypto 0.55.0), GO-2026-6629 (x/text 0.41.0) and GO-2026-5970 (x/text 0.39.0) are cleared, as claimed.
    • The two left are fixed only in x/[email protected]. govulncheck reports them as imported but not called.
    • GO-2026-5932 is still the only symbol-level hit, through selfupdate's openpgp init. It is the one ci.yml's allowlist (:101-124) permits, so the govulncheck gate behaves the same as before.
  • Build and tests:

    • go build ./... passes, and the heygen binary cross-builds for darwin and windows.
    • go test ./... passes.

— tai2

@somanshreddy
somanshreddy merged commit 4b05ac8 into main Oct 7, 2026
10 checks passed
@somanshreddy
somanshreddy deleted the 10-07-bump_x_crypto_text branch October 7, 2026 23:54
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