Skip to content

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

Closed
phisco-renovate[bot] wants to merge 1 commit into
release-1.15from
renovate/release-1.15-go-github.com-golang-jwt-jwt-v5-vulnerability
Closed

fix(deps): update module github.com/golang-jwt/jwt/v5 to v5.2.2 [security] (release-1.15)#338
phisco-renovate[bot] wants to merge 1 commit into
release-1.15from
renovate/release-1.15-go-github.com-golang-jwt-jwt-v5-vulnerability

Conversation

@phisco-renovate
Copy link
Copy Markdown

@phisco-renovate phisco-renovate Bot commented Mar 22, 2025

This PR contains the following updates:

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

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


jwt-go allows excessive memory allocation during header parsing

CVE-2025-30204 / GHSA-mh63-6h87-95cp

More information

Details

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

Severity

  • CVSS Score: 8.7 / 10 (High)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


jwt-go allows excessive memory allocation during header parsing

CVE-2025-30204 / GHSA-mh63-6h87-95cp / GO-2025-3553

More information

Details

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

Severity

  • CVSS Score: 8.7 / 10 (High)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


Excessive memory allocation during header parsing in github.com/golang-jwt/jwt

CVE-2025-30204 / GHSA-mh63-6h87-95cp / GO-2025-3553

More information

Details

Excessive memory allocation during header parsing in github.com/golang-jwt/jwt

Severity

Unknown

References

This data is provided by OSV and the Go Vulnerability Database (CC-BY 4.0).


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

v5.2.1

Compare Source

What's Changed

New Contributors

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


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • ""
  • 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.


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

This PR has been generated by Mend Renovate.

@phisco-renovate phisco-renovate Bot changed the title fix(deps): update module github.com/golang-jwt/jwt/v5 to v5.2.2 [security] (release-1.15) fix(deps): update module github.com/golang-jwt/jwt/v5 to v5.2.2 [security] (release-1.15) - autoclosed Apr 14, 2026
@phisco-renovate phisco-renovate Bot closed this Apr 14, 2026
@phisco-renovate phisco-renovate Bot deleted the renovate/release-1.15-go-github.com-golang-jwt-jwt-v5-vulnerability branch April 14, 2026 09:30
@phisco-renovate phisco-renovate Bot changed the title fix(deps): update module github.com/golang-jwt/jwt/v5 to v5.2.2 [security] (release-1.15) - autoclosed fix(deps): update module github.com/golang-jwt/jwt/v5 to v5.2.2 [security] (release-1.15) Apr 17, 2026
@phisco-renovate phisco-renovate Bot reopened this Apr 17, 2026
@phisco-renovate phisco-renovate Bot force-pushed the renovate/release-1.15-go-github.com-golang-jwt-jwt-v5-vulnerability branch 2 times, most recently from 0d347b2 to 126211f Compare April 17, 2026 09:39
@phisco-renovate
Copy link
Copy Markdown
Author

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: go.mod
Command failed: install-tool golang $(grep -oP ^toolchain go\K.+ go.mod)

@phisco phisco closed this May 6, 2026
@phisco phisco deleted the branch release-1.15 May 6, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant