Skip to content

fix(deps): update module github.com/golang-jwt/jwt/v5 to v5.2.2 [security] - autoclosed#254

Closed
renovate[bot] wants to merge 1 commit intomainfrom
renovate/go-github.com-golang-jwt-jwt-v5-vulnerability
Closed

fix(deps): update module github.com/golang-jwt/jwt/v5 to v5.2.2 [security] - autoclosed#254
renovate[bot] wants to merge 1 commit intomainfrom
renovate/go-github.com-golang-jwt-jwt-v5-vulnerability

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Mar 21, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/golang-jwt/jwt/v5 v5.2.1 -> v5.2.2 age adoption passing 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.

@renovate renovate bot requested a review from emmanuelgautier as a code owner March 21, 2025 22:27
@codecov
Copy link

codecov bot commented Mar 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 57.95%. Comparing base (e433ad8) to head (5491353).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #254   +/-   ##
=======================================
  Coverage   57.95%   57.95%           
=======================================
  Files          96       96           
  Lines        3927     3927           
=======================================
  Hits         2276     2276           
  Misses       1494     1494           
  Partials      157      157           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@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 Apr 6, 2025
@renovate renovate bot closed this Apr 6, 2025
@renovate renovate bot deleted the renovate/go-github.com-golang-jwt-jwt-v5-vulnerability branch April 6, 2025 10:53
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.

0 participants

Comments