Skip to content

deps: bump helm.sh/helm to fix CVE-2026-35206#4926

Open
raelga wants to merge 2 commits intomainfrom
bump-helm-cve
Open

deps: bump helm.sh/helm to fix CVE-2026-35206#4926
raelga wants to merge 2 commits intomainfrom
bump-helm-cve

Conversation

@raelga
Copy link
Copy Markdown
Collaborator

@raelga raelga commented Apr 17, 2026

https://redhat.atlassian.net/browse/AROSLSRE-667

What

Bump helm.sh/helm/v3 from v3.18.5 to v3.20.2 and helm.sh/helm/v4 from v4.0.0-beta.2 to latest in tooling/olm-bundle-repkg, test, tooling/helmtest.

Why

Fixes CVE-2026-35206 (Moderate) — "Helm Chart extraction output directory collapse via Chart.yaml name dot-segment".

Resolves Dependabot alerts: #211, #212, #213

Testing

  • go build passes
  • go mod tidy clean
  • go work sync clean
  • CI passes

Special notes for your reviewer

Helm bump pulls k8s dependency updates across the workspace via go work sync.

Copilot AI review requested due to automatic review settings April 17, 2026 15:44
@openshift-ci openshift-ci bot requested review from bennerv and deads2k April 17, 2026 15:45
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates Helm (v3 and v4) dependencies to address CVE-2026-35206, and propagates the resulting Kubernetes + related transitive dependency bumps across the Go workspace modules.

Changes:

  • Bump helm.sh/helm/v3 (e.g., in tooling/olm-bundle-repkg) to v3.20.2.
  • Bump helm.sh/helm/v4 (e.g., in test and tooling/helmtest) to v4.1.4.
  • Align a broad set of transitive dependencies (notably k8s.io/* from v0.34.3 → v0.35.1 and related ecosystem libs) across modules.

Reviewed changes

Copilot reviewed 18 out of 36 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tooling/tenant-quota/go.mod Bumps k8s.io/apimachinery / k8s.io/component-base to v0.35.1 (indirect cleanup).
tooling/tenant-quota/go.sum Updates sums for the Kubernetes bumps.
tooling/templatize/go.mod Updates transitive deps including helm.sh/helm/v4 and multiple k8s libs; retains a Helm v4 replace.
tooling/secret-sync/go.mod Bumps k8s.io/apimachinery to v0.35.1.
tooling/secret-sync/go.sum Updates sums for the Kubernetes bump.
tooling/prometheus-rules/go.mod Bumps k8s.io/apimachinery/k8s.io/api and related transitive deps.
tooling/prometheus-rules/go.sum Updates sums to match the new dependency graph.
tooling/pipeline-documentation/go.mod Bumps k8s.io/apimachinery to v0.35.1 (indirect).
tooling/pipeline-documentation/go.sum Updates sums for the Kubernetes bump.
tooling/olm-bundle-repkg/go.mod Bumps helm.sh/helm/v3 to v3.20.2 and updates k8s/controller-runtime/tooling transitive deps.
tooling/olm-bundle-repkg/go.sum Updates sums for Helm v3 + Kubernetes dependency upgrades.
tooling/image-updater/go.mod Bumps k8s.io/apimachinery to v0.35.1 and prunes indirect deps.
tooling/image-updater/go.sum Updates sums for the Kubernetes bump.
tooling/helmtest/go.mod Bumps helm.sh/helm/v4 to v4.1.4 and refreshes transitive deps.
tooling/hcpctl/go.mod Bumps multiple k8s.io/* deps to v0.35.1 and refreshes transitive deps.
tooling/hcpctl/go.sum Updates sums for the new Kubernetes dependency set.
tooling/grafanactl/go.mod Bumps k8s.io/apimachinery to v0.35.1 (indirect).
tooling/grafanactl/go.sum Updates sums for the Kubernetes bump.
tooling/cleanup-sweeper/go.mod Bumps k8s.io/apimachinery to v0.35.1.
tooling/cleanup-sweeper/go.sum Updates sums for the Kubernetes bump.
test/go.mod Bumps helm.sh/helm/v4 to v4.1.4 and several k8s.io/* deps to v0.35.1.
test-integration/go.mod Bumps k8s.io/apimachinery/k8s.io/client-go to v0.35.1 and related transitive deps.
test-integration/go.sum Updates sums for Kubernetes and other transitive upgrades.
sessiongate/go.mod Bumps k8s.io/* deps to v0.35.1 and updates structured-merge-diff/controller-runtime.
sessiongate/go.sum Updates sums for the Kubernetes ecosystem upgrades.
internal/go.mod Bumps k8s.io/apimachinery/k8s.io/component-base to v0.35.1 and updates transitive deps.
internal/go.sum Updates sums for the updated dependency graph.
frontend/go.mod Bumps otelhttp and k8s.io/* deps; updates grpc-gateway/genproto/etc.
frontend/go.sum Updates sums for the new dependency set.
backend/go.mod Bumps otelhttp and k8s.io/* deps; updates grpc-gateway/genproto/etc.
backend/go.sum Updates sums for the updated dependency graph.
admin/server/go.mod Bumps k8s.io/apimachinery/k8s.io/client-go to v0.35.1 and related transitive deps.
admin/server/go.sum Updates sums for the new Kubernetes dependency set.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tooling/templatize/go.mod
Comment thread test/go.mod Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 18 out of 36 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 11 to +13
golang.org/x/text v0.35.0
helm.sh/helm/v3 v3.18.5
k8s.io/api v0.34.3
k8s.io/apiextensions-apiserver v0.34.3
k8s.io/apimachinery v0.34.3
helm.sh/helm/v3 v3.20.2
k8s.io/api v0.35.1
Copy link

Copilot AI Apr 17, 2026

Choose a reason for hiding this comment

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

This module was bumped to helm.sh/helm/v3 v3.20.2, but the repo’s bingo-managed Helm CLI still appears pinned to helm-v3.16.3 (via .bingo/Variables.mk / .bingo/helm.mod). If CI/dev workflows use that helm binary for chart extraction, the CVE this PR is addressing may still be present in the toolchain. Consider bumping the bingo Helm version in the repo as well (or documenting/ensuring the old binary isn’t used for untrusted chart extraction).

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@copilot The bingo-managed Helm CLI binary is a separate concern from the helm.sh/helm/v3 Go library dependency. They serve different purposes — the CLI is used for chart rendering at deploy time, while the Go module is used as a library in our tooling code. Version alignment between them is not required.

Bumps helm.sh/helm/v3 to v3.20.2 and helm.sh/helm/v4 to v4.1.4.
This requires k8s.io/apimachinery v0.35.1 which changed the
validate.ImmutableByReflect/ImmutableByCompare, validate.Enum,
and validate.NewDiscriminatedUnionMembership APIs.
@raelga
Copy link
Copy Markdown
Collaborator Author

raelga commented Apr 17, 2026

/test lint

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 25 out of 43 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Apr 17, 2026

@raelga: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-parallel 46ab399 link true /test e2e-parallel
ci/prow/integration 46ab399 link true /test integration
ci/prow/test-unit 46ab399 link true /test test-unit

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@hbhushan3
Copy link
Copy Markdown
Collaborator

Nit: the GHSA link in the PR body points to GHSA-prf6-xjxh-p698 (OTel Collector auth bypass, CVE-2024-45043), but the correct advisory for Helm CVE-2026-35206 is GHSA-hr2v-4r36-88hr. Cosmetic copy-paste error only.

@raelga
Copy link
Copy Markdown
Collaborator Author

raelga commented Apr 17, 2026

@hbhushan3 Fixed the GHSA link to GHSA-hr2v-4r36-88hr.

@hbhushan3
Copy link
Copy Markdown
Collaborator

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Apr 17, 2026
@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Apr 17, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hbhushan3, raelga

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants