fix(deps): update module github.com/micahparks/jwkset to v0.6.0 [security] #2563
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.
This PR contains the following updates:
v0.5.20
->v0.6.0
GitHub Vulnerability Alerts
CVE-2025-22149
Impact
The project's provided HTTP client's local JWK Set cache should do a full replacement when the goroutine refreshes the remote JWK Set. The current behavior is to overwrite or append. This is a security issue for use cases that utilize the provided auto-caching HTTP client and where key removal from a JWK Set is equivalent to revocation.
Example attack scenario:
github.com/MicahParks/jwkset
v0.5.0-v0.5.21 has elapsed itsHTTPClientStorageOptions.RefreshInterval
duration, causing a refresh of the remote JWK Set.Patches
The affected auto-caching HTTP client was added in version
v0.5.0
and fixed inv0.6.0
. Upgrade tov0.6.0
or later.Workarounds
The only workaround would be to remove the provided auto-caching HTTP client and replace it with a custom implementation. This involves setting the
HTTPClientStorageOptions.RefreshInterval
to zero (or not specifying the value). Upgrade tov0.6.0
is advised.References
Please see the tracking issue on GitHub for additional details: https://github.com/MicahParks/jwkset/issues/40
Release Notes
MicahParks/jwkset (github.com/MicahParks/jwkset)
v0.6.0
Compare Source
The purpose of this release is to fix a bug pointed out by @rohitkoul in https://github.com/MicahParks/jwkset/pull/7#discussion_r1907816656. There is a bug in the refresh goroutine related to key replacement.
The project's provided HTTP client's local JWK Set cache should do a full replacement when the goroutine refreshes the remote JWK Set. The current behavior is to overwrite or append. This is a security issue for use cases that utilize the provided auto-caching HTTP client and where key removal from a JWK Set is equivalent to revocation.
Regardless of this bug, please note that removing a key from a JWK Set does not equate to instant revocation for most use cases as it takes time for JWK Set updates to propagate to all clients.
Relevant issues:
Relevant pull requests:
v0.5.21
Compare Source
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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.
This PR has been generated by Renovate Bot.