Skip to content

fix(deps): upgrade golang.org/x/crypto to v0.52.0 (COMP-2460) - #76

Closed
cristianrcv wants to merge 1 commit into
masterfrom
fix/COMP-2460-golang-x-crypto-fido-bypass
Closed

cristianrcv wants to merge 1 commit into
masterfrom
fix/COMP-2460-golang-x-crypto-fido-bypass

Conversation

@cristianrcv

Copy link
Copy Markdown
Contributor

Summary

The Verify() method for FIDO/U2F security key types (sk-ecdsa-sha2-nistp256@openssh.com, sk-ssh-ed25519@openssh.com) did not check the User Presence flag, so signatures generated without a physical touch were accepted.

Notes

  • golang.org/x/crypto is an indirect requirement (pulled in via gin → validator/v10 → x/crypto/sha3). No parent upgrade can resolve it: every parent requires a version below 0.52.0, so under MVS the go.mod require line is the only lever. No replace directive, constraint or force-pin was used.
  • x/crypto v0.52.0 declares go 1.25.0, so the go directive moves 1.24.3 → 1.25.0. CI already builds with Go 1.27.1, so no workflow change was needed.
  • go get pulled the matching x/net, x/sync, x/sys and x/text bumps.

Verification

go mod verify, go build ./..., go vet ./... and go test ./... all pass locally.

JIRA

COMP-2460: Fix golang.org/x/crypto: FIDO/U2F security key physical presence check can be bypassed

Security Advisory

https://github.com/seqeralabs/staticreg/security/dependabot/17

🤖 Generated with Claude Code

The FIDO/U2F Verify() path in x/crypto/ssh did not check the User
Presence flag, so signatures produced without a physical touch were
accepted. Bumping to the first patched release closes the bypass.

x/crypto v0.52.0 declares go 1.25.0, so the go directive moves from
1.24.3 to 1.25.0; CI already builds with Go 1.27.1. go get pulled the
matching x/net, x/sync, x/sys and x/text bumps.

Addresses CVE-2026-39831 / GHSA-89gr-r52h-f8rx
See: https://github.com/seqeralabs/staticreg/security/dependabot/17

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@cristianrcv

Copy link
Copy Markdown
Contributor Author

Discarded in favour of #71

@cristianrcv
cristianrcv deleted the fix/COMP-2460-golang-x-crypto-fido-bypass branch September 14, 2026 16:58
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