Skip to content

NO-ISSUE: Bump golang.org/x/crypto to v0.52.0#580

Open
jkaurredhat wants to merge 1 commit into
openshift:mainfrom
jkaurredhat:update-xcrypto-main
Open

NO-ISSUE: Bump golang.org/x/crypto to v0.52.0#580
jkaurredhat wants to merge 1 commit into
openshift:mainfrom
jkaurredhat:update-xcrypto-main

Conversation

@jkaurredhat

@jkaurredhat jkaurredhat commented Jul 20, 2026

Copy link
Copy Markdown

Summary

This PR updates golang.org/x/crypto from v0.49.0 to v0.52.0 to address CVE-2026-46597 (Denial of Service via crafted AES-GCM packet decoder inputs in golang.org/x/crypto/ssh).

An incorrectly placed cast from bytes to int allowed for server-side panic in the AES-GCM packet decoder for well-crafted inputs.

Note: golang.org/x/crypto/ssh is not directly imported by the csi-operator (indirect dependency only), so the risk is LOW. Updating for security compliance.

Update golang.org/x/crypto from v0.49.0 to v0.52.0 to address
CVE-2026-46597 (Denial of Service via crafted AES-GCM packet decoder
inputs in golang.org/x/crypto/ssh).

An incorrectly placed cast from bytes to int allowed for server-side
panic in the AES-GCM packet decoder for well-crafted inputs.

Note: golang.org/x/crypto/ssh is not directly imported by this
component (indirect dependency only), so risk is LOW. Updating
for compliance.

CVSS: 7.5 (Important)
Go Vuln DB: GO-2026-5013

Related: OCPBUGS-95516
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Pipeline controller notification
This repo is configured to use the pipeline controller. Second-stage tests will be triggered either automatically or after lgtm label is added, depending on the repository configuration. The pipeline controller will automatically detect which contexts are required and will utilize /test Prow commands to trigger the second stage.

For optional jobs, comment /test ? to see a list of all defined jobs. To trigger manually all jobs from second stage use /pipeline required command.

This repository is configured in: LGTM mode

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jul 20, 2026
@openshift-ci-robot

Copy link
Copy Markdown

@jkaurredhat: This pull request explicitly references no jira issue.

Details

In response to this:

Summary

This PR updates golang.org/x/crypto from v0.49.0 to v0.52.0 to address CVE-2026-46597 (Denial of Service via crafted AES-GCM packet decoder inputs in golang.org/x/crypto/ssh).

An incorrectly placed cast from bytes to int allowed for server-side panic in the AES-GCM packet decoder for well-crafted inputs.

Note: golang.org/x/crypto/ssh is not directly imported by the csi-operator (indirect dependency only), so the risk is LOW. Updating for security compliance.

CVE Details

CVE-2026-46597: Denial of Service via crafted AES-GCM packet decoder inputs

Changes

  • Updated golang.org/x/crypto from v0.49.0 to v0.52.0
  • Ran go mod tidy and go mod vendor
  • Transitive updates: golang.org/x/net, golang.org/x/sys, golang.org/x/term, golang.org/x/text

Test Plan

  • go build ./... passes
  • Go version preserved at 1.25.3
  • Vendor directory updated
  • CI tests pass

Related

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 openshift-eng/jira-lifecycle-plugin repository.

@coderabbitai

coderabbitai Bot commented Jul 20, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

Updated five indirect golang.org/x dependencies in go.mod: x/crypto, x/net, x/sys, x/term, and x/text.

Possibly related issues

  • openshift/oauth-server#206 — Concerns updating the golang.org/x/crypto dependency in go.mod.
  • openshift/image-based-install-operator#443 — Concerns updating the golang.org/x/crypto dependency.
  • openshift/assisted-installer#1404 — Includes an update to golang.org/x/crypto alongside other Go modules.
  • openshift/oc-mirror#1330 — Concerns updating the golang.org/x/crypto dependency.
  • openshift/machine-api-provider-azure#178 — Concerns a golang.org/x/crypto version bump.
  • openshift/cluster-api-provider-ibmcloud#141 — Concerns updating the golang.org/x/crypto dependency.
  • openshift/cluster-baremetal-operator#536 — Includes a golang.org/x/crypto update alongside other Go modules.
🚥 Pre-merge checks | ✅ 15
✅ Passed checks (15 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names ✅ Passed PR touches go.mod/go.sum and vendor code only; no *_test.go files or Ginkgo titles were changed.
Test Structure And Quality ✅ Passed PR only updates go.mod/go.sum and vendored deps; no Ginkgo test code was added or modified.
Microshift Test Compatibility ✅ Passed No new or modified *_test.go/e2e files in the diff; changes are go.mod/go.sum and vendor updates only, so no MicroShift e2e compatibility issue.
Single Node Openshift (Sno) Test Compatibility ✅ Passed PR only updates deps/vendor; no new Ginkgo e2e tests or *_test.go changes were added, so SNO compatibility concerns don’t apply.
Topology-Aware Scheduling Compatibility ✅ Passed Only go.mod/go.sum and vendor dependency files changed; no manifests, controllers, or scheduling code were modified.
Ote Binary Stdout Contract ✅ Passed No changed process-level code writes to stdout; the only new logging is standard log to stderr and built-in print() stderr in vendor libs.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed No new Ginkgo e2e tests were added; the PR is vendor-only, so IPv6/disconnected-network compatibility is not applicable.
No-Weak-Crypto ✅ Passed No added diff lines introduce MD5/SHA1/DES/RC4/3DES/Blowfish/ECB or secret comparisons; the only crypto code change is HKDF using stdlib HMAC/HKDF.
Container-Privileges ✅ Passed PR only updates go.mod/go.sum and vendored Go files; no K8s/container manifests or securityContext privilege flags were changed.
No-Sensitive-Data-In-Logs ✅ Passed No project logging changes were added; the vendored http2 debug log calls present here are unchanged from the prior version.
Title check ✅ Passed The title clearly states the main dependency bump and matches the changeset.
Description check ✅ Passed The description is directly related to the x/crypto security update described in the changeset.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@openshift-ci
openshift-ci Bot requested review from RomanBednar and mandre July 20, 2026 15:42

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@go.mod`:
- Line 126: Update the indirect golang.org/x/net dependency from v0.54.0 to
v0.55.0 or later in go.mod, then verify the module graph or dependency usage to
confirm whether the affected x/net packages are reachable and retain the
resolved version accordingly.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: 26be239c-672f-4515-992a-9fbae08a4474

📥 Commits

Reviewing files that changed from the base of the PR and between 1f64834 and b20636f.

⛔ Files ignored due to path filters (121)
  • go.sum is excluded by !**/*.sum
  • vendor/golang.org/x/crypto/hkdf/hkdf.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/http2/README.md is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/http2/client_conn_pool.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/http2/clientconn.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/http2/config.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/http2/http2.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/http2/server.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/http2/server_common.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/http2/server_wrap.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/http2/transport.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/http2/transport_common.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/http2/transport_wrap.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/http2/writesched.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/http2/writesched_common.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/http2/writesched_priority_rfc7540.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/http2/writesched_priority_rfc9218.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/http2/writesched_random.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/http2/writesched_roundrobin.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/idna/go118.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/idna/idna.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/idna/idna9.0.0.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/idna/pre_go118.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/idna/punycode.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/idna/tables10.0.0.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/idna/tables11.0.0.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/idna/tables12.0.0.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/idna/tables13.0.0.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/idna/tables15.0.0.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/idna/tables17.0.0.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/idna/tables9.0.0.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/idna/trie12.0.0.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/idna/trie13.0.0.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/net/internal/httpcommon/request.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/cpu/cpu.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/cpu/cpu_darwin_arm64_other.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/cpu/cpu_linux_riscv64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/cpu/cpu_loong64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/cpu/cpu_riscv64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/cpu/cpu_windows.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/cpu/cpu_windows_arm64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/cpu/zcpu_windows.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/affinity_linux.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/mkall.sh is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/mkerrors.sh is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/readv_unix.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/syscall_darwin.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/syscall_linux.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/syscall_linux_arm.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/syscall_linux_arm64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/syscall_linux_loong64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/syscall_openbsd.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zerrors_linux.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zerrors_linux_386.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zerrors_linux_arm.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zerrors_linux_mips.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zsyscall_linux.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.s is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.s is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.s is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.s is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.s is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.s is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.s is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zsysnum_linux_386.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/ztypes_linux.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/ztypes_linux_386.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/ztypes_linux_arm.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/ztypes_linux_mips.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/windows/dll_windows.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/windows/security_windows.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/windows/syscall_windows.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/windows/types_windows.go is excluded by !vendor/**, !**/vendor/**
  • vendor/golang.org/x/sys/windows/zsyscall_windows.go is excluded by !vendor/**, !**/vendor/**
  • vendor/modules.txt is excluded by !vendor/**, !**/vendor/**
📒 Files selected for processing (1)
  • go.mod

Comment thread go.mod
golang.org/x/crypto v0.52.0 // indirect
golang.org/x/exp v0.0.0-20260312153236-7ab1446f8b90 // indirect
golang.org/x/net v0.52.0 // indirect
golang.org/x/net v0.54.0 // indirect

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail
go mod verify
govulncheck ./...
go list -m all | grep '^golang.org/x/'

Repository: openshift/csi-operator

Length of output: 230


🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail

printf '\n== go.mod context ==\n'
nl -ba go.mod | sed -n '115,135p'

printf '\n== go.sum matches for golang.org/x/net ==\n'
rg -n '^golang.org/x/net ' go.sum || true

printf '\n== go.mod references to golang.org/x/net ==\n'
rg -n 'golang.org/x/net' go.mod go.sum || true

Repository: openshift/csi-operator

Length of output: 222


🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail

printf '\n== go.mod context ==\n'
sed -n '115,135p' go.mod

printf '\n== go.sum matches for golang.org/x/net ==\n'
rg -n '^golang.org/x/net ' go.sum || true

printf '\n== go.mod references to golang.org/x/net ==\n'
rg -n 'golang.org/x/net' go.mod go.sum || true

Repository: openshift/csi-operator

Length of output: 2623


🌐 Web query:

OSV golang.org/x/net v0.54.0 vulnerabilities fixed version 0.55.0 CVE-2026-39821

💡 Result:

CVE-2026-39821 is a security vulnerability in the idna package of the golang.org/x/net module, which was fixed in version 0.55.0 [1][2]. The vulnerability involves an improper input validation flaw in the ToASCII and ToUnicode functions [3][2]. These functions incorrectly accept Punycode-encoded labels that decode to ASCII-only labels (e.g., "xn--example-.com" incorrectly resolving to "example.com" instead of returning an error) [3][2]. This behavior can lead to privilege escalation, as an attacker could potentially bypass security controls that perform checks on an ASCII hostname before it is converted to Unicode [3][2]. This issue is tracked by Go as GO-2026-5026 [1][2]. Users are advised to upgrade to golang.org/x/net version 0.55.0 or later to mitigate this risk [4][2].

Citations:


🌐 Web query:

site:osv.dev golang.org/x/net v0.54.0 html vulnerability fixed version

💡 Result:

Version v0.54.0 of the golang.org/x/net package is affected by several HTML parsing vulnerabilities that can lead to XSS (cross-site scripting) attacks when processing and rendering arbitrary HTML [1][2][3][4][5]. These vulnerabilities are generally fixed in version v0.55.0 [1][2][3][4]. Specific vulnerabilities identified in the golang.org/x/net/html package include: - Incorrect handling of duplicate attributes (GO-2026-5030 / CVE-2026-27136) [1][6]. - Incorrect handling of character references in DOCTYPE nodes (GO-2026-5029) [2]. - Incorrect handling of HTML elements in foreign content (GO-2026-5027 / CVE-2026-42502) [3][4]. - Incorrect handling of namespaced elements in foreign content (CVE-2026-42506) [5]. To remediate these issues, users should update their dependency to at least version v0.55.0 [1][2][3][4].

Citations:


Update golang.org/x/net to v0.55.0 or later. v0.54.0 is still listed by OSV as affected by CVE-2026-39821 and multiple x/net/html vulnerabilities fixed in v0.55.0. Since this is indirect, confirm the affected packages are actually reachable.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@go.mod` at line 126, Update the indirect golang.org/x/net dependency from
v0.54.0 to v0.55.0 or later in go.mod, then verify the module graph or
dependency usage to confirm whether the affected x/net packages are reachable
and retain the resolved version accordingly.

Source: Path instructions

@openshift-ci

openshift-ci Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: jkaurredhat
Once this PR has been reviewed and has the lgtm label, please assign dfajmon for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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 commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

@jkaurredhat: The following test 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/hypershift-aws-e2e-external b20636f link true /test hypershift-aws-e2e-external

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.

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

Labels

jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants