Skip to content

chore: bump golang.org/x/crypto to v0.54.0 to clear SSH advisories - #35

Merged
maoueh merged 1 commit into
developfrom
feature/fix-crypto-depds
Aug 1, 2026
Merged

chore: bump golang.org/x/crypto to v0.54.0 to clear SSH advisories#35
maoueh merged 1 commit into
developfrom
feature/fix-crypto-depds

Conversation

@maoueh

@maoueh maoueh commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Summary

The gRPC-Go v1.83.0 bump (#33) pulled golang.org/x/crypto from v0.44.0 up to v0.51.0, which carries six advisories in golang.org/x/crypto/ssh. This bumps it to v0.54.0 to clear them.

Advisory Description
GO-2026-5033 golang.org/x/crypto/ssh/agent
GO-2026-5023 VerifiedPublicKeyCallback permissions skip enforcement
GO-2026-5021 Auth bypass via unenforced @revoked status in knownhosts
GO-2026-5020 Infinite loop on large channel writes
GO-2026-5019 Bypass of FIDO/U2F security keys physical interaction
GO-2026-5018 Pathological RSA/DSA parameters may cause DoS

All six are fixed in v0.52.0.

Reachability: dgrpc never imports crypto/ssh, so none of these were reachable from our code — govulncheck reported them at module level only, never as called paths. The module requirement alone is what trips dependency scanners, including the dependency-review workflow added in 491979d.

Changes

Bumped to the current latest v0.54.0 rather than the minimum v0.52.0. This carries along the companion golang.org/x modules:

  • golang.org/x/crypto v0.51.0 → v0.54.0
  • golang.org/x/net v0.55.0 → v0.56.0
  • golang.org/x/sync v0.20.0 → v0.22.0
  • golang.org/x/sys v0.45.0 → v0.47.0
  • golang.org/x/term v0.43.0 → v0.45.0
  • golang.org/x/text v0.37.0 → v0.40.0

No source changes — dependency manifests and CHANGELOG.md only.

Verification

  • go test ./... — all packages pass
  • go build ./... — clean
  • govulncheck ./... — no x/crypto/ssh findings remain

Notes

Two things this PR deliberately does not address:

  1. GO-2026-5932 (golang.org/x/crypto/openpgp is unmaintained) still reports against v0.54.0. It is marked Fixed in: N/A — there is no patched version, and we do not import openpgp.
  2. The remaining govulncheck findings are all Go standard library, attributed to the local toolchain (go1.25.4) rather than to anything in this module. They resolve by upgrading the Go toolchain used to build, not by changing go.mod.

The gRPC-Go v1.83.0 bump pulled golang.org/x/crypto from v0.44.0 up to
v0.51.0, which carries six advisories in golang.org/x/crypto/ssh:

  GO-2026-5033, GO-2026-5023, GO-2026-5021,
  GO-2026-5020, GO-2026-5019, GO-2026-5018

All are fixed in v0.52.0. dgrpc never imports crypto/ssh, so none of
these were reachable from our code, but the module requirement alone
trips dependency scanners (including the dependency-review workflow).

Bump to the current latest v0.54.0, which carries along the companion
golang.org/x modules: net v0.55.0 -> v0.56.0, sync v0.20.0 -> v0.22.0,
sys v0.45.0 -> v0.47.0, term v0.43.0 -> v0.45.0, text v0.37.0 -> v0.40.0.

govulncheck now reports no x/crypto/ssh findings. The remaining
findings come from the Go toolchain itself, not from this module.
@maoueh
maoueh merged commit 4c4ac6a into develop Aug 1, 2026
2 checks passed
@maoueh
maoueh deleted the feature/fix-crypto-depds branch August 1, 2026 04:20
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.

1 participant