Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Mar 21, 2025

This PR contains the following updates:

Package Change Age Confidence
github.com/golang-jwt/jwt/v5 v5.2.1v5.2.2 age confidence

GitHub Vulnerability Alerts

CVE-2025-30204

Summary

Function parse.ParseUnverified currently splits (via a call to strings.Split) its argument (which is untrusted data) on periods.

As a result, in the face of a malicious request whose Authorization header consists of Bearer followed by many period characters, a call to that function incurs allocations to the tune of O(n) bytes (where n stands for the length of the function's argument), with a constant factor of about 16. Relevant weakness: CWE-405: Asymmetric Resource Consumption (Amplification)

Details

See parse.ParseUnverified

Impact

Excessive memory allocation


Release Notes

golang-jwt/jwt (github.com/golang-jwt/jwt/v5)

v5.2.2

Compare Source

What's Changed

New Contributors

Full Changelog: golang-jwt/jwt@v5.2.1...v5.2.2


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 is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@socket-security
Copy link

socket-security bot commented Mar 21, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedgithub.com/​golang-jwt/​jwt/​v5@​v5.2.1 ⏵ v5.2.298 +1100 +16100100100

View full report

@renovate renovate bot changed the title fix(deps): update module github.com/golang-jwt/jwt/v5 to v5.2.2 [security] fix(deps): update module github.com/golang-jwt/jwt/v5 to v5.2.2 [security] - autoclosed Jan 6, 2026
@renovate renovate bot closed this Jan 6, 2026
@renovate renovate bot deleted the renovate/go-github.com-golang-jwt-jwt-v5-vulnerability branch January 6, 2026 13:04
@renovate renovate bot changed the title fix(deps): update module github.com/golang-jwt/jwt/v5 to v5.2.2 [security] - autoclosed fix(deps): update module github.com/golang-jwt/jwt/v5 to v5.2.2 [security] Jan 6, 2026
@renovate renovate bot reopened this Jan 6, 2026
@renovate renovate bot force-pushed the renovate/go-github.com-golang-jwt-jwt-v5-vulnerability branch 2 times, most recently from 73a74e2 to e307895 Compare January 6, 2026 17:08
Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

Important

Looks good to me! 👍

Reviewed everything up to 73a74e2 in 40 seconds. Click for details.
  • Reviewed 26 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 2 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. go.mod:7
  • Draft comment:
    Updated github.com/golang-jwt/jwt/v5 dependency to v5.2.2, addressing CVE-2025-30204. Ensure that your tests cover JWT parsing scenarios.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
2. go.sum:32
  • Draft comment:
    New checksums for github.com/golang-jwt/jwt/v5 v5.2.2 are added correctly. No issues noted.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None

Workflow ID: wflow_Rtmo8BORgFGoYD9t

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

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.

1 participant