TokenAuthenticationFetcher leaks accepted JWTs to every UserInfo endpoint
Description
When an application trusts more than one token issuer, TokenAuthenticationFetcher sends still-valid JWTs that it has already accepted to the UserInfo endpoint of every configured OpenID provider. Those providers then hold live tokens belonging to users that are not theirs. To benefit, a configured provider (or anything observing its UserInfo endpoint) must be malicious or compromised, and it cannot choose or trigger whose token it receives. The clearest case is an application with one OpenID client next to a separate micronaut.security.token.jwt.signatures.jwks.* entry. There, the OpenID provider receives access tokens issued by an unrelated authorization server, usable until exp...
Affected and patched versions
The following ranges cover stable releases.
| Release line | Affected versions | First patched release | Fix commit |
|---|---|---|---|
| 4.x | >= 4.15.0, < 4.18.2 | 4.18.2 | 60def573ec |
| 5.0.x–5.4.x | >= 5.0.0, < 5.4.2 | 5.4.2 | a88021cef0 |
| 5.5.x | >= 5.5.0, < 5.5.2 | 5.5.2 | 0cbaab2fe0 |
The fix commits are included in the corresponding release tags and absent from the preceding stable releases (4.18.1, 5.4.1, 5.5.1).
Earliest verified affected stable source: 4.15.0. The built-in remote UserInfo validator appears in v4.15.0 and is absent in v4.14.0; TokenAuthenticationFetcher invokes validators with flatMap.
The 3.11.3 release also contains sequential-validator hardening. The built-in UserInfo disclosure described in this advisory starts at 4.15.0, so 3.x is not listed as affected by that scenario.
Suggested severity
Suggested CVSS v3.1 vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:N/A:N. This is an initial estimate based on the finding report and should be reviewed against the final impact and deployment prerequisites.
Source finding: ANT-2026-W3I6Z6PC.