Skip to content

chore(deps): bump github.com/lestrrat-go/jwx/v2 from 2.0.21 to 2.1.6#4344

Open
dependabot[bot] wants to merge 2 commits intomainfrom
dependabot/go_modules/github.com/lestrrat-go/jwx/v2-2.1.6
Open

chore(deps): bump github.com/lestrrat-go/jwx/v2 from 2.0.21 to 2.1.6#4344
dependabot[bot] wants to merge 2 commits intomainfrom
dependabot/go_modules/github.com/lestrrat-go/jwx/v2-2.1.6

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Apr 17, 2026

Bumps github.com/lestrrat-go/jwx/v2 from 2.0.21 to 2.1.6.

Release notes

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

v2.1.6

What's Changed

Please read the Changes file and upgrade accordingly, especially if you are using the following combinations for JWE:

  • DIRECT mode content encryption
  • Using A256CBC_HS512
  • With an erroneously created CEK of exactly 32-bytes.

Full Changelog: lestrrat-go/jwx@v2.1.5...v2.1.6

v2.1.5

What's Changed

Full Changelog: lestrrat-go/jwx@v2.1.4...v2.1.5

v2.1.4

What's Changed

Full Changelog: lestrrat-go/jwx@v2.1.3...v2.1.4

v2.1.3

What's Changed

... (truncated)

Changelog

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

Changes

v3 has many incompatibilities with v2. To see the full list of differences between v2 and v3, please read the Changes-v3.md file (https://github.com/lestrrat-go/jwx/blob/develop/v3/Changes-v3.md)

v3.1.0 UNRELEASED

  • [jwk] BREAKING: jwk.PublicSetOf now returns an error when the input set contains a symmetric (oct) key. Previously, symmetric keys were silently passed through — which meant callers following the documented "publish my public JWKS" pattern could leak HMAC secret material. Callers who genuinely want the legacy pass-through behavior can opt in with jwk.WithAllowSymmetric(true). The signature is now variadic (PublicSetOf(v Set, options ...PublicSetOption)), so existing call sites compile unchanged. The minor version is bumped from v3.0.x → v3.1.0 to reflect this deliberate behavior change.

    jwk.PublicKeyOf on a single symmetric key is unchanged — it still returns the key as-is, matching its documented behavior.

  • [jws][jwe][jwk] Replace intermediate map[string]any allocation in MarshalJSON with a pair-slice + sync.Pool pattern, matching the approach already used in jwt. Eliminates per-call map and key-slice allocations in the serialization hot path.

  • [jwt][jwe][jws][jwk] Fix inconsistent mutex locking across main data structures. Named getters on JWK key types, MarshalJSON on JWK keys, UnmarshalJSON on JWE headers, makePairs/MarshalJSON on JWT tokens, rawBuffer on JWS headers, and Set/Keys on jwk.Set were missing proper lock protection. Switch all mutex fields from *sync.RWMutex (pointer) to sync.RWMutex (value) so go vet -copylocks catches accidental copies, and convert affected value-receiver methods to pointer receivers.

  • [jwt][jwe][jws] Add WithMaxParseInputSize(int64) to limit bytes read from an io.Reader in ParseReader and ReadFile. Default is 10 MB. Can be set globally via Settings() or per-call. (#1630, #1632)

  • [jwe] Add WithMaxRecipients(int) to reject JWE messages with more recipients than the configured limit. Default is 100. Can be set globally via jwe.Settings() or per-call in jwe.Decrypt() / jwe.Parse(). (#1633)

  • [jws] Add WithMaxSignatures(int) to reject JWS JSON-serialized messages with more signatures than the configured limit. Default is 100. Can be set globally via jws.Settings() or per-call in jws.Parse(). (#1636)

  • [jwk] The default HTTP client used by jwk.Fetch() and jwk.Cache now enforces a 30-second timeout, blocks HTTPS-to-HTTP redirect downgrades at every hop, and limits redirect chains to 5 hops. This mitigates SSRF via redirect chains and slowloris-style DoS from unresponsive JWKS endpoints. Callers who provide their own http.Client via jwk.WithHTTPClient() are

... (truncated)

Commits

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/v2](https://github.com/lestrrat-go/jwx) from 2.0.21 to 2.1.6.
- [Release notes](https://github.com/lestrrat-go/jwx/releases)
- [Changelog](https://github.com/lestrrat-go/jwx/blob/develop/v3/Changes)
- [Commits](lestrrat-go/jwx@v2.0.21...v2.1.6)

---
updated-dependencies:
- dependency-name: github.com/lestrrat-go/jwx/v2
  dependency-version: 2.1.6
  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 Apr 17, 2026
@dependabot dependabot bot requested review from a team as code owners April 17, 2026 14:14
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Apr 17, 2026
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