-
Notifications
You must be signed in to change notification settings - Fork 1
Update module github.com/go-jose/go-jose/v3 to v3.0.4 [SECURITY] #19
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
base: main
Are you sure you want to change the base?
Update module github.com/go-jose/go-jose/v3 to v3.0.4 [SECURITY] #19
Conversation
🚨 gitStream Monthly Automation Limit Reached 🚨 Your organization has exceeded the number of pull requests allowed for automation with gitStream. To continue automating your PR workflows and unlock additional features, please contact LinearB. |
Reviewer's Guide by SourceryThis PR updates the go-jose module from v3.0.3 to v3.0.4 to address CVE-2025-27144, a vulnerability that could lead to a denial of service. The update involves changes to go.mod and go.sum to reflect the new module version. Sequence diagram for JWS/JWE parsing with fix for CVE-2025-27144sequenceDiagram
participant Attacker
participant Application
participant go-jose/go-jose
Attacker->>Application: Sends malicious JWS/JWE with many '.' characters
activate Application
Application->>go-jose/go-jose: Parse JWS/JWE
activate go-jose/go-jose
go-jose/go-jose-->>Application: Returns error (previously caused excessive memory consumption)
deactivate go-jose/go-jose
Application-->>Attacker: Returns error or handles the invalid token
deactivate Application
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
We have skipped reviewing this pull request. It seems to have been created by a bot (hey, renovate[bot]!). We assume it knows what it's doing!
This PR contains the following updates:
v3.0.3
->v3.0.4
GitHub Vulnerability Alerts
CVE-2025-27144
Impact
When parsing compact JWS or JWE input, go-jose could use excessive memory. The code used strings.Split(token, ".") to split JWT tokens, which is vulnerable to excessive memory consumption when processing maliciously crafted tokens with a large number of '.' characters. An attacker could exploit this by sending numerous malformed tokens, leading to memory exhaustion and a Denial of Service.
Patches
Version 4.0.5 fixes this issue
Workarounds
Applications could pre-validate payloads passed to go-jose do not contain an excessive number of '.' characters.
References
This is the same sort of issue as in the golang.org/x/oauth2/jws package as CVE-2025-22868 and Go issue https://go.dev/issue/71490.
Release Notes
go-jose/go-jose (github.com/go-jose/go-jose/v3)
v3.0.4
Compare Source
What's Changed
Backport fix for GHSA-c6gw-w398-hv78 CVE-2025-27144
https://github.com/go-jose/go-jose/pull/174
Full Changelog: go-jose/go-jose@v3.0.3...v3.0.4
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.