{"id":"CVE-2026-89313","title":"JwksTrustStore.Get returns the last fetched JWKS key (err=nil) when the requested kid is absent, instead of nil","summary":"`JwksTrustStore.Get` assigned each parsed key to the function's **named return value** while refreshing the JWKS cache. When the requested `kid` was not present, the trailing naked `return` handed the caller the last key in the JWKS docu…","severity":"medium","cvss":6.3,"cvssVector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","cvssSource":"cna","cwe":["CWE-706"],"vendor":"Eclipse Foundation","product":"github.com/ThalesGroup/gose","affected":["github.com/ThalesGroup/gose >= 0.7.5 <= 0.13.0-rc1","github.com/eclipse-keypont/gose < 1.0.0-rc4"],"published":"2026-10-23","updated":"2026-10-23","sourceUpdated":"2026-10-23T08:40:55.499Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-89313","references":[{"url":"https://github.com/eclipse-keypont/gose/security/advisories/GHSA-v7r8-g6h9-99vv"}],"tags":["cve.org"],"ingestedAt":"2026-10-23T09:20:44.060Z","slug":"CVE-2026-89313","body":"## Overview\n\n`JwksTrustStore.Get` assigned each parsed key to the function's **named return value** while refreshing the JWKS cache. When the requested `kid` was not present, the trailing naked `return` handed the caller the last key in the JWKS document together with a `nil` error — a confidently wrong answer instead of \"not found\".\n\n## Affected\n\n- `github.com/ThalesGroup/gose >= 0.7.5 <= 0.13.0-rc1`\n- `github.com/eclipse-keypont/gose < 1.0.0-rc4`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"sunlit","depthScore":35,"depthScoreParts":{"impact":34.7,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}