# CVE-2025-59936: get-jwks poisoned JWKS cache allows post-fetch issuer validation bypass

- Severity: Critical 9.4 (CVSS:3.0, scored by GitHub_M) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L`
- 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.42%, higher than 38% of CVEs (2026-12-01)
- Published: 2025-09-26T14:27:01.000Z
- Modified: 2026-10-09T10:10:00.193Z
- Also known as: GHSA-qc2q-qhf3-235m
- Weaknesses: CWE-116
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

get-jwks contains fetch utils for JWKS keys. In versions prior to 11.0.2, a vulnerability in get-jwks can lead to cache poisoning in the JWKS key-fetching mechanism. When the iss (issuer) claim is validated only after keys are retrieved from the cache, it is possible for cached keys from an unexpected issuer to be reused, resulting in a bypass of issuer validation. This design flaw enables a potential attack where a malicious actor crafts a pair of JWTs, the first one ensuring that a chosen public key is fetched and stored in the shared JWKS cache, and the second one leveraging that cached key to pass signature validation for a targeted iss value. The vulnerability will work only if the iss validation is done after the use of get-jwks for keys retrieval. This issue has been patched in version 11.0.2.

(As written by CVE List.)

## Affected

- nearform get-jwks: < 11.0.2
- get-jwks (npm): before 11.0.2

## Every score

- GitHub_M: CVSS:3.0 9.4 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L`
- GitHub: CVSS:3.0 9.4 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L`

## References

- <https://github.com/nearform/get-jwks/security/advisories/GHSA-qc2q-qhf3-235m> (web)
- <https://github.com/nearform/get-jwks/commit/1706a177a80a1759fe68e3339dc5a219ce03ddb9> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-59936> (advisory)
- <https://github.com/nearform/get-jwks> (package)

## Sources

- CVE List: [CVE-2025-59936](https://www.cve.org/CVERecord?id=CVE-2025-59936), CVE Terms of Use, modified 2025-09-29
- GitHub Advisory Database: [GHSA-qc2q-qhf3-235m](https://github.com/advisories/GHSA-qc2q-qhf3-235m), CC-BY-4.0, modified 2025-09-29
- NVD: [CVE-2025-59936](https://nvd.nist.gov/vuln/detail/CVE-2025-59936), Public domain, modified 2026-10-09

---

Page: https://cve.day/CVE-2025-59936 · Whole record: https://cve.day/CVE-2025-59936.json · Rebuilt by cve.day 2026-11-25T22:59:05.263Z
