Skip to content

build(deps): bump golang.org/x/crypto to v0.58.0, oras-go to v2.6.2 and Go to 1.26 - #1383

Open
AhmedElket92 wants to merge 2 commits into
notaryproject:mainfrom
AhmedElket92:deps/x-crypto-v0.58.0
Open

AhmedElket92 wants to merge 2 commits into
notaryproject:mainfrom
AhmedElket92:deps/x-crypto-v0.58.0

Conversation

@AhmedElket92

@AhmedElket92 AhmedElket92 commented Nov 8, 2026 •

Copy link
Copy Markdown

What

Bumps golang.org/x/crypto from v0.45.0 to v0.58.0 and oras.land/oras-go/v2 from v2.6.0 to v2.6.2 in all three modules (root, test/e2e, test/e2e/plugin), together with the Go version x/crypto needs.

Why

golang.org/x/crypto v0.45.0 is affected by seven critical CVEs, all fixed in v0.52.0:
CVE-2026-39830, CVE-2026-39831, CVE-2026-39832, CVE-2026-39833, CVE-2026-39834, CVE-2026-42508, CVE-2026-46595.
v0.58.0 also clears CVE-2026-56855 and CVE-2026-78662, which still affect v0.52.0 to v0.55.0.

oras.land/oras-go/v2 v2.6.0 is affected by CVE-2026-50151, CVE-2026-50162, CVE-2026-50163, CVE-2026-85731, CVE-2026-85732, CVE-2026-48978 and GHSA-vh4v-2xq2-g5cg, all fixed in v2.6.2 (golang.org/x/sync moves to v0.22.0 with it).

Dependabot's v0.52.0 bump (#1357) failed CI on Go 1.24 and was closed by the stale bot. x/crypto v0.52.0 and later require Go 1.25, and v0.56.0 and later Go 1.26, so this PR also:

  • raises the go directive of the three modules to 1.26.0 (Go 1.24 and 1.25 are no longer supported upstream)
  • moves the CI, CodeQL and release workflows from Go 1.24 to Go 1.26
  • bumps golangci-lint from v2.5.0 to v2.15.0: v2.5.0 is built with Go 1.25 and stops with the Go language version (go1.25) used to build golangci-lint is lower than the targeted Go version (1.26.0)
  • updates the Go requirement in building.md

It also covers the open dependabot PRs for the test modules (#1356, #1358, #1367). The same fix for a v1.3.3 patch release is in #1384 (against release-1.3).

Context: #1368 asks for a maintenance release. Downstream distributions such as Bottlerocket ship the notation CLI and are flagged for these CVEs until a release includes the fix.

Testing (Go 1.26.10, linux/amd64)

  • go build ./cmd/notation, then notation version
  • go test ./...: 22 packages pass (run without -race: no C compiler on the test machine)
  • go vet ./... in all three modules
  • golangci-lint run with v2.15.0: 0 issues
  • go mod verify: all modules verified

golang.org/x/crypto v0.45.0 is affected by seven critical CVEs fixed in
v0.52.0: CVE-2026-39830, CVE-2026-39831, CVE-2026-39832, CVE-2026-39833,
CVE-2026-39834, CVE-2026-42508 and CVE-2026-46595. v0.58.0 also clears
CVE-2026-56855 and CVE-2026-78662, which still affect v0.52.0 to v0.55.0.

x/crypto v0.52.0 and later require Go 1.25, and v0.56.0 and later Go 1.26,
so this also:
- raises the go directive of the three modules to 1.26.0
- moves the CI, CodeQL and release workflows to Go 1.26
- bumps golangci-lint to v2.15.0 (v2.5.0 is built with Go 1.25 and refuses
  to load a module that targets Go 1.26)
- updates the Go requirement in building.md

Signed-off-by: AhmedElket92 <168613104+AhmedElket92@users.noreply.github.com>
oras.land/oras-go/v2 v2.6.0 is affected by CVE-2026-50151, CVE-2026-50162,
CVE-2026-50163, CVE-2026-85731, CVE-2026-85732, CVE-2026-48978 and
GHSA-vh4v-2xq2-g5cg, all fixed in v2.6.2. golang.org/x/sync moves to
v0.22.0 as a dependency of the new oras-go.

Signed-off-by: AhmedElket92 <168613104+AhmedElket92@users.noreply.github.com>
@AhmedElket92 AhmedElket92 changed the title build(deps): bump golang.org/x/crypto to v0.58.0 and Go to 1.26 build(deps): bump golang.org/x/crypto to v0.58.0, oras-go to v2.6.2 and Go to 1.26 Nov 8, 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.

1 participant