{"id":"CVE-2025-59936","published":"2025-09-27T00:22:10Z","modified":"2025-09-29T14:55:22Z","title":"get-jwks poisoned JWKS cache allows post-fetch issuer validation bypass","vendor":"nearform","product":"get-jwks","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.4,"severity":"CRITICAL","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00692,"percentile":0.4822,"provenance":"source"},"cwes":[{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"references":[{"url":"https://github.com/nearform/get-jwks/security/advisories/GHSA-qc2q-qhf3-235m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nearform/get-jwks/commit/1706a177a80a1759fe68e3339dc5a219ce03ddb9","tags":["x_refsource_MISC"]}],"priority":{"score":16.2,"factors":[{"name":"EPSS percentile","points":9.64},{"name":"CVSS severity","points":6.58}]},"vendorSlug":"nearform","affectedVersions":[{"vendor":"nearform","product":"get-jwks","versions":["< 11.0.2"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-09-29T14:54:57.310485Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"get-jwks","vulnerableRanges":["<11.0.2"],"patched":["11.0.2"],"from":["GHSA-qc2q-qhf3-235m"],"provenance":"source"}],"summary":{"text":"The get-jwks package from NearForm, which provides fetch utilities for JWKS keys, contains a flaw in its JWKS key-fetching mechanism where keys are cached in a shared cache and can be poisoned. An attacker with network access and no authentication or user interaction can craft a pair of JWTs, the first to plant a chosen public key in the shared cache and the second to reuse that cached key to pass signature validation for a targeted issuer, but only where the iss claim is validated after keys are retrieved via get-jwks, and this affects versions before 11.0.2.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:35:50Z"},"euvd":{"id":"EUVD-2025-31349","exploited":false,"provenance":"source"}}