# CVE-2025-22149: JWK Set's HTTP client only overwrites and appends JWK to local cache during refresh

- Severity: Low 2.1 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.76%, higher than 56% of CVEs (2026-12-01)
- Published: 2025-01-09T17:22:59.757Z
- Modified: 2026-06-17T08:45:21.110Z
- Also known as: GHSA-675f-rq2r-jw82, GO-2025-3376
- Weaknesses: CWE-672
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

JWK Set (JSON Web Key Set) is a JWK and JWK Set Go implementation. Prior to 0.6.0, 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. The affected auto-caching HTTP client was added in version v0.5.0 and fixed in v0.6.0. 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).

(As written by CVE List.)

## Affected

- MicahParks jwkset: >= 0.5.0, < 0.6.0
- github.com/MicahParks/jwkset (Go): from 0.5.0 before 0.6.0

## Every score

- GitHub_M: CVSS:4.0 2.1 Low `CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N`

## References

- <https://github.com/MicahParks/jwkset/security/advisories/GHSA-675f-rq2r-jw82> (advisory, web)
- <https://github.com/MicahParks/jwkset/issues/40> (report, web)
- <https://github.com/MicahParks/jwkset/commit/01db49a90f7f20c7fb39a699a2f19a7a5f379ed3> (fix, web)
- <https://www.vicarius.io/vsociety/posts/cve-2025-22149-detect-jwkset-vulnerability-in-go-projects-1>
- <https://www.vicarius.io/vsociety/posts/cve-2025-22149-mitigate-jwkset-vulnerability-in-go-projects>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-22149> (advisory)
- <https://github.com/MicahParks/jwkset/pull/41> (fix, web)
- <https://github.com/MicahParks/jwkset> (package)

## Sources

- CVE List: [CVE-2025-22149](https://www.cve.org/CVERecord?id=CVE-2025-22149), CVE Terms of Use, modified 2025-05-23
- GitHub Advisory Database: [GHSA-675f-rq2r-jw82](https://github.com/advisories/GHSA-675f-rq2r-jw82), CC-BY-4.0, modified 2025-01-09
- Go Vulnerability Database: [GO-2025-3376](https://pkg.go.dev/vuln/GO-2025-3376), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2025-22149](https://nvd.nist.gov/vuln/detail/CVE-2025-22149), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-22149 · Whole record: https://cve.day/CVE-2025-22149.json · Rebuilt by cve.day 2026-11-25T22:58:53.200Z
