GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update module github.com/golang-jwt/jwt/v4 to v4.5.2 [SECURITY] by renovate[bot] · Pull Request #200 · developing-today/code

Conversation

@renovate

@renovate renovate Bot commented Oct 13, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
github.com/golang-jwt/jwt/v4 v4.5.0 → v4.5.2 age confidence

Bad documentation of error handling in ParseWithClaims can lead to potentially dangerous situations

CVE-2024-51744 / GHSA-29wx-vh33-7x7r

More information

Details

Summary

Unclear documentation of the error behavior in ParseWithClaims can lead to situation where users are potentially not checking errors in the way they should be. Especially, if a token is both expired and invalid, the errors returned by ParseWithClaims return both error codes. If users only check for the jwt.ErrTokenExpired using error.Is, they will ignore the embedded jwt.ErrTokenSignatureInvalid and thus potentially accept invalid tokens.

Fix

We have back-ported the error handling logic from the v5 branch to the v4 branch. In this logic, the ParseWithClaims function will immediately return in "dangerous" situations (e.g., an invalid signature), limiting the combined errors only to situations where the signature is valid, but further validation failed (e.g., if the signature is valid, but is expired AND has the wrong audience). This fix is part of the 4.5.1 release.

Workaround

We are aware that this changes the behaviour of an established function and is not 100 % backwards compatible, so updating to 4.5.1 might break your code. In case you cannot update to 4.5.0, please make sure that you are properly checking for all errors ("dangerous" ones first), so that you are not running in the case detailed above.

token, err := /* jwt.Parse or similar */
if token.Valid {
	fmt.Println("You look nice today")
} else if errors.Is(err, jwt.ErrTokenMalformed) {
	fmt.Println("That's not even a token")
} else if errors.Is(err, jwt.ErrTokenUnverifiable) {
	fmt.Println("We could not verify this token")
} else if errors.Is(err, jwt.ErrTokenSignatureInvalid) {
	fmt.Println("This token has an invalid signature")
} else if errors.Is(err, jwt.ErrTokenExpired) || errors.Is(err, jwt.ErrTokenNotValidYet) {
	// Token is either expired or not active yet
	fmt.Println("Timing is everything")
} else {
	fmt.Println("Couldn't handle this token:", err)
}

Severity

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

References

  • https://github.com/golang-jwt/jwt/security/advisories/GHSA-29wx-vh33-7x7r
  • https://github.com/golang-jwt/jwt/commit/7b1c1c00a171c6c79bbdb40e4ce7d197060c1c2c
  • https://nvd.nist.gov/vuln/detail/CVE-2024-51744
  • https://github.com/advisories/GHSA-29wx-vh33-7x7r

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

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

  • https://github.com/golang-jwt/jwt/security/advisories/GHSA-mh63-6h87-95cp
  • https://github.com/golang-jwt/jwt/commit/0951d184286dece21f73c85673fd308786ffe9c3
  • https://nvd.nist.gov/vuln/detail/CVE-2025-30204
  • https://github.com/golang-jwt/jwt/commit/bf316c48137a1212f8d0af9288cc9ce8e59f1afb
  • https://security.netapp.com/advisory/ntap-20250404-0002
  • https://github.com/advisories/GHSA-mh63-6h87-95cp

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


Release Notes

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

v4.5.2

Compare Source

See GHSA-mh63-6h87-95cp

Full Changelog: golang-jwt/jwt@v4.5.1...v4.5.2

v4.5.1

Compare Source

Security

Unclear documentation of the error behavior in ParseWithClaims in <= 4.5.0 could lead to situation where users are potentially not checking errors in the way they should be. Especially, if a token is both expired and invalid, the errors returned by ParseWithClaims return both error codes. If users only check for the jwt.ErrTokenExpired using error.Is, they will ignore the embedded jwt.ErrTokenSignatureInvalid and thus potentially accept invalid tokens.

This issue was documented in GHSA-29wx-vh33-7x7r and fixed in this release.

Note: v5 was not affected by this issue. So upgrading to this release version is also recommended.

What's Changed

  • Back-ported error-handling logic in ParseWithClaims from v5 branch. This fixes GHSA-29wx-vh33-7x7r.

Full Changelog: golang-jwt/jwt@v4.5.0...v4.5.1


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • 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 was generated by Mend Renovate. View the repository job log.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@renovate
renovate Bot requested review from a team and dezren39 as code owners October 13, 2026 12:42
@github-actions github-actions Bot assigned dezren39 Oct 13, 2026
@coderabbitai

coderabbitai Bot commented Oct 13, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Review in Change Stack →

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c1cd35ae-3f73-480e-9992-36b38400c0d4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5d9f034d-1b65-4ed1-8bbb-870245502d69
📥 Commits

Reviewing files that changed from the base of the PR and between 252c1fb and 9a7bba9.

⛔ Files ignored due to path filters: 3
  • pkgs/graph/go.sum is excluded by !**/*.sum
  • pkgs/identity/go.sum is excluded by !**/*.sum
  • pkgs/map/go.sum is excluded by !**/*.sum
📒 Files selected for processing: 1
  • pkgs/map/go.mod
🚧 Files skipped from review as they are similar to previous changes: 1
  • pkgs/map/go.mod

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

📝 Walkthrough

The graph, identity, and map Go modules upgrade the indirect github.com/golang-jwt/jwt/v4 dependency from v4.5.0 to v4.5.2.

Changes: JWT dependency version update

Layer / File(s) Summary
Update module dependency versions
pkgs/graph/go.mod, pkgs/identity/go.mod, pkgs/map/go.mod
Each module updates the indirect github.com/golang-jwt/jwt/v4 dependency from v4.5.0 to v4.5.2.

Priority: ➖ Normal

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Merge Risk: ⚪ Minimal · up to 9a7bb

The dependency update has no identified merge-blocking issue and appears ready to merge after normal checks.

Architecture risk: 🔵 Low · up to 252c1

The change affects 1 system.

Changed systems: pkgs

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — pkgs (service) was modified; 3 changed files map to changed impact.

Before / after behavior

  • observed — Modified behavior in pkgs/graph/go.mod: The indirect github.com/golang-jwt/jwt/v4 dependency version changes from v4.5.0 to v4.5.2.
  • observed — Modified behavior in pkgs/identity/go.mod: Updated the indirect github.com/golang-jwt/jwt/v4 dependency from v4.5.0 to v4.5.2.
  • observed — Modified behavior in pkgs/map/go.mod: The indirect github.com/golang-jwt/jwt/v4 dependency version changes from v4.5.0 to v4.5.2.
Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly identifies the dependency, the version update to v4.5.2, and the security purpose. It matches the main change.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

✨ Finishing Touches: 💡 1
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Oct 18, 2026
mcpx: re-home the open mcpx backlog from dezren39/nix, with this repo as the single source #309
Closed
3 tasks
@renovate
renovate Bot force-pushed the renovate/go-github.com-golang-jwt-jwt-v4-vulnerability branch 2 times, most recently from 9a7bba9 to e082ec3 Compare October 20, 2026 08:13
@renovate renovate Bot changed the title chore(deps): update module github.com/golang-jwt/jwt/v4 to v4.5.2 [security] Update module github.com/golang-jwt/jwt/v4 to v4.5.2 [SECURITY] Oct 22, 2026
@renovate renovate Bot changed the title Update module github.com/golang-jwt/jwt/v4 to v4.5.2 [SECURITY] Update module github.com/golang-jwt/jwt/v4 to v4.5.2 [SECURITY] - autoclosed Oct 22, 2026
@renovate renovate Bot closed this Oct 22, 2026
@renovate
renovate Bot deleted the renovate/go-github.com-golang-jwt-jwt-v4-vulnerability branch October 22, 2026 16:10
@renovate renovate Bot changed the title Update module github.com/golang-jwt/jwt/v4 to v4.5.2 [SECURITY] - autoclosed Update module github.com/golang-jwt/jwt/v4 to v4.5.2 [SECURITY] Oct 22, 2026
@renovate renovate Bot reopened this Oct 22, 2026
@renovate
renovate Bot force-pushed the renovate/go-github.com-golang-jwt-jwt-v4-vulnerability branch from e082ec3 to fefef1b Compare October 22, 2026 18:11
@renovate
Update module github.com/golang-jwt/jwt/v4 to v4.5.2 [SECURITY]
cbc3b16
@renovate
renovate Bot force-pushed the renovate/go-github.com-golang-jwt-jwt-v4-vulnerability branch from 2cb8fa9 to cbc3b16 Compare October 23, 2026 01:25
dezren39 added 2 commits October 22, 2026 20:28
@dezren39
Merge remote-tracking branch 'origin/main' into pr200
f3c7207
@dezren39
fix(graph): tidy go.sum after golang-jwt bump
22aa419
@dezren39
dezren39 merged commit 78e1c6c into main Oct 23, 2026
14 checks passed

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Oct 27, 2026
docs(dashboard): build out the mcpx project section (/program/mcpx) + decide its Project/roadmap integration #1127
Closed
mcpx: Phase 1 of #1601 — surface ttlMs/cacheScope in mcpclient and expire the pool catalogue cache (modern era) #1602
Closed
mcpx: Phase 3 of #1634 — register truth-up (TR-29, PM-06) and nix#203 evidence #1639
Closed
mcpx plugin: DaemonClient.call sends fields the daemon does not read; mcpx_exec loses the session and reads a missing field #1910
Closed
mcpx: serving 2026-07-28 to a conformant client — server/discover fields, serverInfo, cache hints, header checks and HTTP statuses #1916
Closed
mcpx server: legacy conformance — counter-offer on initialize, 2025-03-26 batches, no replies to notifications, sessions and error codes #1922
Closed
mcpx: Phase 3 of #1601 — register truth-up, list_changed invalidation test, and nix#200 evidence #1604
Closed
This was referenced Nov 8, 2026
Closure audit: every closed issue/PR verified; unmerged branches + unpushed worktrees inventoried #7079
Open
Retroactive home for PR #200: Update module github.com/golang-jwt/jwt/v4 to v4.5.2 [SECURITY] #9281
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@dezren39 dezren39 Awaiting requested review from dezren39

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@dezren39 dezren39

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.