6.3Medium

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

Eclipse Foundation Eclipse KeyPont - GOSE Published: (25 days ago)

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

Weakness (CWE): CWE-706

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Eclipse Foundation Eclipse KeyPont - GOSE 0.7.5 – ≤ 0.13.0-rc1

References and patches