Skip to content

build(deps): bump github.com/lestrrat-go/jwx/v4 from 4.5.0 to 4.6.0 - #303

Merged
github-actions[bot] merged 1 commit into
mainfrom
dependabot/go_modules/github.com/lestrrat-go/jwx/v4-4.6.0
Nov 2, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
dependabot/go_modules/github.com/lestrrat-go/jwx/v4-4.6.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 2, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/lestrrat-go/jwx/v4 from 4.5.0 to 4.6.0.

Release notes

Sourced from github.com/lestrrat-go/jwx/v4's releases.

v4.6.0

For more detailed release notes, see Changes.

What's Changed

New Contributors

Full Changelog: lestrrat-go/jwx@v4.5.0...v4.6.0

Changelog

Sourced from github.com/lestrrat-go/jwx/v4's changelog.

v4.6.0 23 October 2026

  • [jws][jwk] github.com/valyala/fastjson is no longer a dependency. The header probes in jws/jwsbb and jwk/jwkbb now use encoding/json/v2 and jsontext.

    jwsbb.HeaderParse, jwsbb.HeaderParseCompact, and jwkbb.HeaderParse now reject a header whose strings contain a raw control character, invalid UTF-8, or a lone surrogate escape such as \ud800. The first HeaderGet* call returns the error, and HeaderHas reports false. jws.VerifyCompactFast, and therefore jwt.Parse, now also reject a protected header with a raw control character or invalid UTF-8 in a string, as jws.Verify does. (#2372)

  • [jwk] jwk.Set.All() and jwk.Set.Fields() now loop over a copy of the keys or fields taken when each loop starts. The set can therefore be changed inside the loop, for example with AddKey, RemoveKey, Set, or Remove, and those changes do not affect the running loop. (#2373)

  • [jwt] jwt.Parse called with exactly two jwt.WithKey options and no other options now tries both keys, so a token signed with either key verifies. Calls with three or more options already tried every key. (#2374)

  • [jwt] jwt.Equal now sorts the members of every JSON object, including nested ones, before comparing, so two tokens holding the same map-valued claim always compare equal. This is needed because v4 serializes with encoding/json/v2, which writes map keys in random order (v3's encoding/json sorted them). Raw JSON claims holding the same members in a different order also compare equal. Arrays keep their order and numbers keep their exact digits, so integers above 2^53 that differ still compare unequal. (#2375)

  • [jwe] jwe.Decrypt now tries each key provider in turn and moves on to the next one when a provider returns an error, as jws.Verify does. For example, jwe.WithKeySet with a set that has no usable key, followed by a working jwe.WithKey, decrypts with the working key. If no key works, the provider errors are included in the returned error. (#2376)

  • [jwe] JSON serialization of a JWE now always includes the ciphertext member, and jwe.Parse now accepts an empty ciphertext. A JWE that encrypts an empty plaintext with AES-GCM therefore round-trips through jwe.Encrypt(..., jwe.WithJSON()), jwe.Parse, and json.Marshal. A missing, null, or non-string ciphertext is still rejected, and the iv and tag members must still be non-empty. (#2377)

  • [jwe] JSON serialization of a JWE now writes the shared unprotected header as a JSON object, as RFC 7516 requires. A JWE with a shared unprotected header therefore round-trips through jwe.Parse, json.Marshal, jwe.Parse, and jwe.Decrypt. (#2378)

... (truncated)

Commits
  • 4fd7c22 Merge pull request #2448 from lestrrat-go/chore-v4-release-4.6.0
  • 6594705 release v4.6.0
  • f458a10 ci: run autodoc only for develop/v4 (#2446)
  • 968ee04 Merge pull request #2439 from lestrrat-go/docs-v4-jwe-per-recipient-headers
  • 786a0db Merge pull request #2435 from lestrrat-go/docs-v4-jws-crit-extension
  • ea176ca merge develop/v4
  • b220ffa Merge pull request #2438 from lestrrat-go/feat-v4-jwe-decrypted-recipient
  • 9492da1 merge develop/v4
  • 5f629b8 merge develop/v4
  • b011454 Merge pull request #2434 from lestrrat-go/feat-v4-jws-verified-signature
  • 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/lestrrat-go/jwx/v4](https://github.com/lestrrat-go/jwx) from 4.5.0 to 4.6.0.
- [Release notes](https://github.com/lestrrat-go/jwx/releases)
- [Changelog](https://github.com/lestrrat-go/jwx/blob/develop/v4/Changes)
- [Commits](lestrrat-go/jwx@v4.5.0...v4.6.0)

---
updated-dependencies:
- dependency-name: github.com/lestrrat-go/jwx/v4
  dependency-version: 4.6.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 Nov 2, 2026
@github-actions
github-actions Bot merged commit 07863e3 into main Nov 2, 2026
2 of 3 checks passed
@dependabot
dependabot Bot deleted the dependabot/go_modules/github.com/lestrrat-go/jwx/v4-4.6.0 branch November 2, 2026 14:22
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