Bump golang.org/x/net to v0.55.0 for Go 1.26 CVE cleanup (OCP 4.14) - #71
Merged
Conversation
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
- Bump go-version 1.22 -> 1.26 in golangci-lint.yml and build-test.yml, and golangci-lint-action pin + version to v2.9.0 (golangci-lint v1.58 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.58, plus the standard redefines-builtin-id exclusions already used on the other streams.
|
[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 DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes for OCP Tools 4.14 (HELM-813):
golang.org/x/netv0.23.0 -> v0.55.0 (fixes CVE-2026-27136, CVE-2026-39821). This transitively bumps siblinggolang.org/x/*modules to satisfy x/net's own go.mod requirements. Thegodirective was already at 1.26 from the earlier v3.15.4.1 respin (HELM-812), no change needed here..golangci.ymlfrom the v1 to v2 config schema and bumpgolangci-lintto v2.9.0 (v1.58, built with an old Go, can't lint a module with ago 1.26directive). Also bumps the hardcodedgo-version: "1.22"ingolangci-lint.yml/build-test.ymlto1.26to match. Preserves the original lint policy; excludes revive rules the newer bundled revive now enables by default that aren't part of this branch's existing lint policy.Once RELENG-506 lands (tagging the already-built
golang-1.26.3-1.el8_10into theocp-tools-4.14-rhel-8-overridebuildroot), this also clears the way to close CVE-2026-33811 (OCPTOOLS-1430) and CVE-2026-39820 (OCPTOOLS-1465) for this stream.Tracking: HELM-813