forked from filanov/cluster-api-provider-agent
-
Notifications
You must be signed in to change notification settings - Fork 24
NO-ISSUE: Update module github.com/openshift/golang-oauth2 to v0.28.0 #757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
red-hat-konflux
wants to merge
1
commit into
master
Choose a base branch
from
konflux/mintmaker/master/github.com-openshift-golang-oauth2-0.x
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+14
−10
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
CVE-2025-22868 golang oauth2 security vulnerability💡 Result:
CVE-2025-22868 (Go / golang.org/x/oauth2) is a Denial-of-Service (DoS) issue where a malicious, malformed token can trigger unexpected/unbounded memory consumption during token parsing. [1][2]
golang.org/x/oauth2/jws(in thegolang.org/x/oauth2module) before v0.27.0. [1][3]golang.org/x/oauth2to v0.27.0 or later (contains the patch). [1][3]What to do
Sources
[1] Go vulnerability report (GO-2025-3488) https://pkg.go.dev/vuln/GO-2025-3488
[2] NVD entry https://nvd.nist.gov/vuln/detail/CVE-2025-22868
[3] GitHub Advisory (GHSA-6v2p-p543-phr9) GHSA-6v2p-p543-phr9
🏁 Script executed:
Repository: openshift/cluster-api-provider-agent
Length of output: 1261
🌐 Web query:
github.com/openshift/golang-oauth2 v0.28.0 release💡 Result:
I couldn’t find any publicly indexed GitHub “Release” (or even a discoverable repository page) for
github.com/openshift/golang-oauth2or av0.28.0release/tag in that OpenShift org—search results consistently resolve only to the upstreamgolang/oauth2project, not an OpenShift fork. [2]For the upstream module
golang.org/x/oauth2, tagv0.28.0corresponds to a change titled “Deep copy context client inNewClient” (so client settings like timeouts from a context-provided*http.Clientare preserved instead of being lost). The tag was committed on March 3, 2025. [1]Sources:
[1]
v0.28.0tag details (commit message/date) on Chromium’s mirror ofgolang/oauth2: (chromium.googlesource.com)[2] Upstream GitHub repository (no OpenShift fork/release surfaced in search): (github.com)
Citations:
Cannot verify the OpenShift fork version publicly—confirm the security fix is present.
The replace directive points to
github.com/openshift/golang-oauth2 v0.28.0, which claims to address CVE-2025-22868 (a HIGH-severity DoS ingolang.org/x/oauth2/jws). However, the OpenShift fork tagv0.28.0cannot be verified publicly via GitHub—no release or tag is discoverable.While the upstream
golang.org/x/oauth2 v0.28.0exists (released March 3, 2025) and would contain the fix, this change uses a fork without clear documentation. Before merging:v0.28.0exists and includes the CVE-2025-22868 patchv0.27.0+directly instead🤖 Prompt for AI Agents