Skip to content

[gomod] Bump github.com/golang-jwt/jwt/v5 from 5.3.1 to 5.4.0 - #140

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/github.com/golang-jwt/jwt/v5-5.4.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/github.com/golang-jwt/jwt/v5-5.4.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 4, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/golang-jwt/jwt/v5 from 5.3.1 to 5.4.0.

Release notes

Sourced from github.com/golang-jwt/jwt/v5's releases.

v5.4.0

Behavior changes

This release tightens parsing and validation. Tokens that were accepted before may now be rejected:

  • Tokens with line breaks (CR or LF) in any segment are now rejected as malformed (#553).
  • MapClaims with exp set to 0 is now treated as expired, not as a missing claim (#509).
  • An aud claim of an invalid type in MapClaims now returns ErrInvalidType (#511).

New API

  • Constants for registered header parameter names, such as HeaderAlgorithm and HeaderKeyID (#535).

Other changes

  • The token expired error now says how long ago the token expired (#510).

New Contributors

Full Changelog: golang-jwt/jwt@v5.3.1...v5.4.0

Commits
  • 2f702c7 ci: measure coverage on library packages only (#572)
  • f411663 Reject line breaks in token segments (#553)
  • 851a8a9 ci: update CI workflows (#560)
  • b13946c Bump crate-ci/typos from 1.48.0 to 1.51.1 (#554)
  • ba84bb6 Bump actions/setup-go from 6.5.0 to 7.0.0 (#558)
  • 9a618ef chore: added AGENTS.md (#551)
  • d2cffb1 Bump coverallsapp/github-action from 2.3.7 to 2.3.8 (#527)
  • a7e07ff Bump actions/checkout from 7.0.0 to 7.0.1 (#529)
  • 73c870b Add registered header parameter name constants (#535)
  • 1a11d37 fix: return ErrInvalidType for an invalid aud claim type in MapClaims (#511)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/golang-jwt/jwt/v5](https://github.com/golang-jwt/jwt) from 5.3.1 to 5.4.0.
- [Release notes](https://github.com/golang-jwt/jwt/releases)
- [Commits](golang-jwt/jwt@v5.3.1...v5.4.0)

---
updated-dependencies:
- dependency-name: github.com/golang-jwt/jwt/v5
  dependency-version: 5.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Dec 4, 2026

@ecosquad-autoreview ecosquad-autoreview Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Summary

Dependabot bump of github.com/golang-jwt/jwt/v5 from 5.3.1 to 5.4.0. Only go.mod and go.sum change (no code changes). I verified the blast radius of the 5.4.0 behavior changes against this repo:

  • Direct imports of the library exist only in tests — internal/api/auth/oidc_test.go:292 and internal/api/middleware_test.go:232. Both use jwt.NewWithClaims(jwt.SigningMethodNone, jwt.MapClaims{...}).SignedString(...) purely to sign alg: none tokens for negative tests; they never parse or verify via golang-jwt. Their claims use a valid non-zero exp (time.Now().Add(time.Hour).Unix()) and a string aud, so the 5.4.0 MapClaims changes (exp: 0 now treated as expired; invalid aud type now ErrInvalidType) do not affect them.
  • Production verification goes through coreos/go-oidc/v3 v3.21.0 (internal/api/auth/oidc.go → oidc.IDTokenVerifier), which verifies with its own IDToken struct, not MapClaims. go-oidc is compatible with golang-jwt v5.x, so the bump is safe.
  • The new rejection of CR/LF in token segments (#553) is a hardening measure; well-formed OIDC access tokens from the IDP (and all test-generated tokens here) contain no line breaks. No legitimate token would be newly rejected.

Findings

No blocking issues.

Suggestion / note:

  • CI at the head commit has no conclusive build/test signal: CodeQL is neutral due to missing scan configs on refs/heads/main (unrelated to this change) and GitGuardian is still in progress. Since this is a module-only bump with no code changes, the test suite (go test ./...) would be the only meaningful validation, but the analysis above indicates no behavioral impact on this codebase.

Verdict

Approve — the version bump is safe for this codebase; no changes required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants