Skip to content

Bump golang.org/x/net to v0.55.0 and align Go toolchain to 1.26 (CVE cleanup for OCP 4.16) - #72

Merged
baijum merged 3 commits into
release-3.17from
bump-xnet-0.55.0-release-3.17
Aug 5, 2026
Merged

Bump golang.org/x/net to v0.55.0 and align Go toolchain to 1.26 (CVE cleanup for OCP 4.16)#72
baijum merged 3 commits into
release-3.17from
bump-xnet-0.55.0-release-3.17

Conversation

@baijum

@baijum baijum commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Fixes for OCP Tools 4.16 (HELM-819):

  • Bump golang.org/x/net v0.37.0 -> v0.55.0 (fixes CVE-2026-27136, CVE-2026-39821). This transitively bumps sibling golang.org/x/* modules to satisfy x/net's own go.mod requirements.
  • Align the go directive to 1.26, to build with the latest available Red Hat Go toolchain (golang-1.26.5-1.el9_8, already present in the ocp-tools-4.16-rhel-9 buildroot via RHEL z-stream inheritance — no RelEng action needed, same as HELM-820/821).
  • Migrate .golangci.yml from the v1 to v2 config schema and bump golangci-lint to v2.9.0, since v1.62 can't lint a module with a go 1.26 directive. Preserves the original lint policy; excludes a few revive rules the newer bundled revive now enables by default that aren't part of this branch's existing lint policy.

Tracking: HELM-819

baijum added 3 commits July 29, 2026 13:38
golang.org/x/net/html has an XSS vulnerability via HTML parsing bypass
(CVE-2026-27136) and golang.org/x/net/idna has a privilege escalation
via incorrect Punycode label processing (CVE-2026-39821). Both are
fixed in x/net >= v0.55.0. This stream was previously on an older,
vulnerable version.

Ref: HELM-814, HELM-818
The x/net bump in the previous commit raised the go.mod "go" directive
to 1.25.0 as an incidental side effect of satisfying x/net v0.55.0's
own module requirements. Aligning explicitly to the 1.26 line instead,
since Red Hat now has newer Go 1.26.x builds available for this
platform than what's currently tagged into this stream's Brew
buildroot override (golang-1.26.4-1.el9_8, dbenoit-built, already
shipped as RHSA-2026:29981 for other products) -- tagging it into
this stream's override would also satisfy the Go >= 1.26.3 fix
threshold for CVE-2026-33811 and CVE-2026-39820.

Ref: HELM-816, HELM-817
- Bump go-version 1.23 -> 1.26 in golangci-lint.yml and build-test.yml,
  and golangci-lint version to v2.9.0 (v1.62 can't lint a module with
  a go 1.26 directive).
- Migrate .golangci.yml from the v1 to v2 config schema, preserving the
  original lint policy (gosimple+staticcheck -> staticcheck with SA*/S*
  checks only, gofmt/goimports -> formatters section).
- Exclude a handful of revive rules (exported, package-comments,
  unexported-return, var-naming) that golangci-lint v2.9.0's newer
  bundled revive now enables by default but weren't part of this
  branch's original lint policy under v1.62.
@openshift-ci
openshift-ci Bot requested review from kpiwko and martinszuc August 5, 2026 11:35
@openshift-ci

openshift-ci Bot commented Aug 5, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: baijum

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

@openshift-ci openshift-ci Bot added the approved label Aug 5, 2026
@baijum
baijum merged commit 7c12eb9 into release-3.17 Aug 5, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant