Skip to content

Bump otel, x/net and x/crypto to clear trivy findings - #855

Merged
wallrj-cyberark merged 1 commit into
masterfrom
bump-otel-x-net-x-crypto
Nov 27, 2026
Merged

wallrj-cyberark merged 1 commit into
masterfrom
bump-otel-x-net-x-crypto

Conversation

@wallrj-cyberark

Copy link
Copy Markdown
Contributor

trivy reports four fixable findings in the agent binary built from master. This PR fixes all four by bumping three indirect dependencies:

Module From To Fixes
go.opentelemetry.io/otel (and /trace) v1.46.0 v1.47.0 CVE-2026-128085 (medium)
golang.org/x/net v0.60.0 v0.63.0 CVE-2026-78661 (high), CVE-2026-97045 (medium)
golang.org/x/crypto v0.57.0 v0.59.0 GO-2026-5932

x/sync, x/sys, x/term and x/text move up with the new x/net and x/crypto. govulncheck did not flag any of these, because the agent does not call the affected code. We want them fixed before the next release so that image scans come back clean.

Dependabot raised alert 30 for the otel finding, but it cannot open the PR. The repo is public and depends on the private venafi-connection-lib, which Dependabot cannot fetch. Renovate has not run on this repo since 69e091f removed its workflow in December 2025. So for now these bumps have to be made by hand.

How I tested it
  • trivy rootfs --scanners vuln --ignore-unfixed on a binary built from master: 4 findings (the ones in the table). On a binary built from this branch: 0.
  • make verify-govulncheck passes: "No vulnerabilities found".
  • make verify passes.
  • make test-unit passes: 467 tests, 4 skipped.

Prior art: #834, which bumped x/crypto and x/net for trivy findings.

[with Claude]

- trivy reports fixable findings in the agent image: otel
  CVE-2026-128085 (fixed in v1.47.0), x/net/html CVE-2026-78661 and
  CVE-2026-97045 (fixed in v0.62.0) and x/crypto GO-2026-5932.
- Dependabot cannot open these PRs because the repo depends on the
  private venafi-connection-lib.
- x/sync, x/sys, x/term and x/text move up with the new x/net and
  x/crypto.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Richard Wall <richard.wall@cyberark.com>

@wallrj-cyberark wallrj-cyberark left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made the change with go get golang.org/x/crypto@v0.59.0 golang.org/x/net@v0.63.0 go.opentelemetry.io/otel@v1.47.0 go.opentelemetry.io/otel/trace@v1.47.0 and go mod tidy. Everything else in go.mod and go.sum follows from that.

Comment thread go.mod
github.com/spf13/pflag v1.0.10
github.com/stretchr/testify v1.12.1
golang.org/x/sync v0.23.0
golang.org/x/sync v0.25.0

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only direct dependency that changes. The new x/net and x/crypto need x/text v0.44.0, and x/text v0.44.0 needs x/sync v0.25.0.

Comment thread go.mod
go.opentelemetry.io/otel v1.46.0 // indirect
go.opentelemetry.io/otel/trace v1.46.0 // indirect
go.opentelemetry.io/otel v1.47.0 // indirect
go.opentelemetry.io/otel/trace v1.47.0 // indirect

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otel/trace is the module trivy flags for CVE-2026-128085. It reaches the binary through k8s.io/component-base/metrics, which pkg/logs imports.

@wallrj-cyberark
wallrj-cyberark merged commit 238c621 into master Nov 27, 2026
6 checks passed
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.

2 participants