Skip to content

fix: bump golang.org/x/crypto to v0.57.0 and suppress GO-2026-5932 - #276

Open
marcusburghardt wants to merge 1 commit into
complytime:mainfrom
marcusburghardt:fix/bump-x-crypto-v0.57.0
Open

marcusburghardt wants to merge 1 commit into
complytime:mainfrom
marcusburghardt:fix/bump-x-crypto-v0.57.0

Conversation

@marcusburghardt

Copy link
Copy Markdown
Member

Summary

Resolve code-scanning alert #52 by addressing 3 known vulnerabilities in the transitive dependency golang.org/x/crypto v0.55.0.

Vulnerabilities Addressed

Vuln ID CVE Package Fix
GO-2026-6354 CVE-2026-78662 x/crypto/ssh Upgraded to v0.57.0
GO-2026-6355 CVE-2026-56855 x/crypto/ssh Upgraded to v0.57.0
GO-2026-5932 x/crypto/openpgp Suppressed via osv-scanner.toml

This also resolves Trivy alerts #102 and #103 (same SSH CVEs).

Changes

go.mod / go.sum

Bump golang.org/x/crypto from v0.55.0 to v0.57.0. This fixes both SSH DoS vulnerabilities (CVE-2026-78662 and CVE-2026-56855).

osv-scanner.toml (new file)

Suppress GO-2026-5932 with documented rationale. This advisory flags the deprecated golang.org/x/crypto/openpgp package, which:

  • Has no CVE — it is a deprecation notice, not an active exploit (go.dev/issue/44226)
  • Has no fix version — the Go team deprecated openpgp but will not remove it from the x/crypto module
  • Is never imported by complypack or any of its transitive dependencies — confirmed via govulncheck and go list -deps ./...
  • The only x/crypto sub-packages actually compiled are pbkdf2 (JWX), chacha20, chacha20poly1305, and cryptobyte (Go stdlib vendored)

Since every version of golang.org/x/crypto is flagged by this advisory (introduced=0, fixed=N/A), suppression via osv-scanner.toml is the only viable approach. This is the documented method for non-applicable transitive advisories.

Verification

  • go build ./... — passes
  • go test -race ./... — all 22 packages pass
  • govulncheck ./... — SSH CVEs resolved; reports 0 reachable vulnerabilities
  • gitleaks detect — no leaks found

Note on Scorecard

The Scorecard "Vulnerabilities" check queries the OSV API directly and does not read osv-scanner.toml. After merging, the Scorecard score should improve (2 of 3 vulns fixed), but may still report GO-2026-5932. This is an accepted upstream limitation affecting every Go project that transitively depends on golang.org/x/crypto.

Resolve code-scanning alert complytime#52 by upgrading golang.org/x/crypto from
v0.55.0 to v0.57.0, which fixes CVE-2026-78662 (SSH DoS via undecided
channel deadlock) and CVE-2026-56855 (SSH DoS via established channel
deadlock).

Add osv-scanner.toml to suppress GO-2026-5932 (deprecated openpgp
package). This advisory has no fixed version because the package is
permanently unmaintained. complypack does not import openpgp; the module
is a transitive dependency pulled in by OPA, Regal, and JWX for
x/crypto/pbkdf2 only. govulncheck confirms zero reachable
vulnerabilities.

Assisted-by: OpenCode (claude-opus-4-6)
Signed-off-by: Marcus Burghardt <maburgha@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Ready for Review 👀

Development

Successfully merging this pull request may close these issues.

2 participants