Skip to content

security: update vulnerable Go modules to first patched releases - #45

Open
codethor0 wants to merge 1 commit into
mainfrom
security/go-deps
Open

codethor0 wants to merge 1 commit into
mainfrom
security/go-deps

Conversation

@codethor0

Copy link
Copy Markdown
Owner

Root cause

go.mod pinned runtime dependencies with published advisories. Dependabot reported 19 open alerts: 7 critical, 10 high, and the rest medium or low.

Change

Each affected module moves to its smallest patched release:

Module From To
golang.org/x/crypto 0.50.0 0.52.0
golang.org/x/net 0.53.0 0.55.0
google.golang.org/grpc 1.79.3 1.83.1
oras.land/oras-go/v2 2.6.0 2.6.2
github.com/klauspost/compress 1.18.6 1.18.7
github.com/sigstore/rekor 1.5.0 1.5.2
github.com/sigstore/sigstore-go 1.1.4 1.2.1
github.com/sigstore/timestamp-authority/v2 2.0.6 2.1.2 (required by sigstore-go 1.2.1)
go.opentelemetry.io/otel/trace 1.42.0 1.47.0

Other version changes in go.sum and the indirect requirements come from Go's minimum version selection. The go directive moves from 1.25.5 to 1.26.0 because the patched dependencies require it. CI uses go-version-file: go.mod, so it follows automatically.

This change covers Dependabot PRs #38, #40, #41, #42, and #43 with smaller version jumps. Those PRs can be closed after this one merges.

Validation (local, Go 1.27.4)

  • go build ./...: OK
  • go vet ./...: OK
  • go test ./...: all packages pass
  • go test -race ./...: all packages pass
  • make coverage-gate: pass (crypto 68.6%, transfer 37.2%, oci 66.7%)

Security considerations

No application code changes. The changes touch only the crypto and signing libraries' patch and minor releases. Dependabot re-evaluates the alerts on main after merge.

Limitations

govulncheck was not run, because it is not installed locally.

Resolves the 19 open Dependabot alerts (7 critical, 10 high) on runtime
dependencies by moving each affected module to its smallest patched
version: golang.org/x/crypto 0.52.0, golang.org/x/net 0.55.0,
google.golang.org/grpc 1.83.1, oras.land/oras-go/v2 2.6.2,
github.com/klauspost/compress 1.18.7, github.com/sigstore/rekor 1.5.2,
github.com/sigstore/sigstore-go 1.2.1 (with timestamp-authority/v2 2.1.2,
which it requires), and go.opentelemetry.io/otel/trace 1.47.0.

The go directive moves from 1.25.5 to 1.26.0 because the patched
dependencies require it; CI reads the version from go.mod.
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