CVE-2025-59936 Details
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.
A cache poisoning vulnerability has been identified in the get-jwks package, specifically in versions prior to 11.0.2. This issue affects the JWKS key-fetching mechanism, where the validation of the 'iss' (issuer) claim occurs only after keys are retrieved from the cache. As a result, it is possible for cached keys from an unexpected issuer to be reused, bypassing issuer validation. This flaw enables an attacker to craft two JWTs: the first fetches and stores a public key in the JWKS cache, and the second uses that cached key to pass signature validation for a targeted issuer. The vulnerability arises when 'iss' validation is performed after retrieving keys from get-jwks, which is the common practice.
Users are advised to update to version 11.0.2 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 27, 2025CISA-ADP
Assessed Sep 29, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/nearform/get-jwks/commit/1706a177a80a1759fe68e3339dc5a219ce03ddb9 | [email protected] | Source CodeVendor |
| https://github.com/nearform/get-jwks/security/advisories/GHSA-qc2q-qhf3-235m | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-116 | Improper Encoding or Escaping of Output | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| nearform get-jwks | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 9, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 27, 2025 | New CVE Received | [email protected] |
Volerion