# CVE-2026-89313: JwksTrustStore.Get returns the last fetched JWKS key (err=nil) when the requested kid is absent, instead of nil

- Severity: Medium 6.3 (CVSS:4.0, scored by eclipse) `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`
- 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.35%, higher than 30% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-23T08:40:55.499Z
- Modified: 2026-11-02T13:17:39.283Z
- Weaknesses: CWE-706
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: eclipse

## Description

`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".

(As written by CVE List.)

## Affected

- github.com/ThalesGroup/gose: from 0.7.5 up to 0.13.0-rc1
- github.com/eclipse-keypont/gose: before 1.0.0-rc4

## References

- <https://github.com/eclipse-keypont/gose/security/advisories/GHSA-v7r8-g6h9-99vv> (exploit)

## Sources

- CVE List: [CVE-2026-89313](https://www.cve.org/CVERecord?id=CVE-2026-89313), CVE Terms of Use, modified 2026-11-02
- NVD: [CVE-2026-89313](https://nvd.nist.gov/vuln/detail/CVE-2026-89313), Public domain, modified 2026-11-02

---

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