CVE-2026-89313
JwksTrustStore.Get returns the last fetched JWKS key (err=nil) when the requested kid is absent, instead of nil
What happened?
`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".
Affected software and versions
| Software | Version information | Fixed version |
|---|---|---|
| github.com/ThalesGroup/goseEclipse Foundation | affected: 0.7.5 to ≤ 0.13.0-rc1 | See vendor advisory |
| github.com/eclipse-keypont/goseEclipse Foundation | affected: 0 to < 1.0.0-rc4 | See vendor advisory |
Version information comes from the source record and can include unaffected products and exceptions. Distribution packages may contain backported fixes: an older upstream version alone does not prove a server is affected.
Is it being exploited?
This CVE was not listed in the CISA catalogue at our last retrieval. This does not establish that exploitation is absent.
How to respond
- Confirm the product, installed package version, and any configuration requirements in the vendor advisory.
- Follow the vendor’s remediation or workaround guidance in the references below. Structured fixed-version data is unavailable here; the publisher’s description may include a fix or workaround.
- Restart affected services if required, then verify the running version. Known exploitation may warrant investigation as well as patching.