CVE-2025-59936

Source
https://cve.org/CVERecord?id=CVE-2025-59936
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-59936.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-59936
Aliases
Published
2025-09-27T00:22:10.412Z
Modified
2026-04-10T05:33:30.466086Z
Severity
  • 9.4 (Critical) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L CVSS Calculator
Summary
get-jwks poisoned JWKS cache allows post-fetch issuer validation bypass
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-116"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/59xxx/CVE-2025-59936.json",
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/nearform/get-jwks

Affected ranges

Type
GIT
Repo
https://github.com/nearform/get-jwks
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v2.*
v2.0.1
v2.1.0
v3.*
v3.0.0
v4.*
v4.0.0
v4.1.0
v4.2.0
v5.*
v5.0.0
v6.*
v6.0.0
v6.0.1
v6.0.2
v6.0.3
v7.*
v7.0.0
v7.1.0
v7.1.1
v8.*
v8.0.0
v8.0.1
v8.0.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-59936.json"