Skip to content

[GHSA-6v2p-p543-phr9] golang.org/x/oauth2 Improper Validation of Syntactic Correctness of Input vulnerability #5995

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
wants to merge 1 commit into
base: jchax/advisory-improvement-5995
Choose a base branch
from

Conversation

jchax
Copy link

@jchax jchax commented Aug 13, 2025

Updates

  • Summary

Comments
According to both https://nvd.nist.gov/vuln/detail/CVE-2025-22868 and the original https://pkg.go.dev/vuln/GO-2025-3488 this is a vulnerabilty in oauth2/jws, not oauth2.

@github-actions github-actions bot changed the base branch from main to jchax/advisory-improvement-5995 August 13, 2025 08:38
@JonathanLEvans
Copy link

Hi @jchax,

Thank you for the interest in improving the advisory database. We use the golang.org/x/oauth2 module name rather than the golang.org/x/oauth2/jws package name for the advisory because the dependency graph only maps Go modules, not Go packages.

@jchax
Copy link
Author

jchax commented Aug 13, 2025

oauth2/jws is a module. Go programs that import golang.org/x/oauth2 have no requirement to include golang.org/x/oauth2/jws and, indeed, skopeo (related to podman and buildah) does just that: it has oauth2 but there is nothing in skopeo that includes oauth2/jws so there is no way for skopeo to be vulnerable to GHSA-6v2p-p543-phr9: the code simply isn't present.

@JonathanLEvans
Copy link

Hi @jchax,

Could you explain how you found that golang.org/x/oauth2/jws is a module? When I look at the golang.org/x/oauth2/jws page in the registry, it only has the package label.

On the other hand, golang.org/x/oauth2 has both the package and module labels. The golang.org/x/oauth2 page also says that it includes golang.org/x/oauth2/jws.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants