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

Status: published. Published: 2026-10-23. Updated: 2026-11-02.

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

## Remediation

No remediation reported in collected sources

## Affected products and versions

- Eclipse Foundation / Eclipse KeyPont - GOSE (github.com/ThalesGroup/gose): ≥ 0.7.5; ≤ 0.13.0-rc1 (affected, semver). Source: CNA: eclipse
- Eclipse Foundation / Eclipse KeyPont - GOSE (github.com/eclipse-keypont/gose): ≥ 0; < 1.0.0-rc4 (affected, semver). Source: CNA: eclipse

## Severity and prioritization

- CVSS 4.0: 6.3 (medium); 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; source: CNA: eclipse

- CISA KEV: No listing in collected sources

- EPSS: 0.23% as of 2026-11-01; percentile 13.42%

- SSVC: exploitation poc; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-706

## Exploit evidence

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

## References

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

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

## Provenance

- CNA: eclipse: https://www.cve.org/CVERecord?id=CVE-2026-89313; retrieved 2026-11-02; source updated 2026-11-02

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-89313; retrieved 2026-11-02; source updated Not reported

Revision: 1e9bc1ab112674b89319081895175931dc462b9ccbe55a52b488ced43bcf061d

Canonical: https://y2.dev/cve/CVE-2026-89313