JWKS signature validation ignores the key-type setting since 3.11.0
Description
Since 3.11.0, the micronaut.security.token.jwt.signatures.jwks.*.key-type setting has no effect. An application that sets key-type: RSA will still accept a token signed with an EC key from the same remote JWK Set, and the reverse is also true. This gives nothing to someone who cannot get tokens from the configured identity provider. No signature can be forged, and a token re-signed with a key outside the set is rejected. The only case that matters is an operator who explicitly set key-type to exclude a key family that the provider still publishes and signs with. There, the holder of a provider-issued token of the excluded type is authenticated as that token's own subject.
Affected and patched versions
The following ranges cover stable releases.
| Release line | Affected versions | First patched release | Fix commit |
|---|---|---|---|
| 3.11.x and earlier | >= 3.11.0, < 3.11.3 | 3.11.3 | daf1125506 |
| 4.x | >= 4.0.0, < 4.18.2 | 4.18.2 | 2d59b821b9 |
| 5.0.x–5.4.x | >= 5.0.0, < 5.4.2 | 5.4.2 | c3090d77ab |
| 5.5.x | >= 5.5.0, < 5.5.2 | 5.5.2 | be8e2ee7f3 |
The fix commits are included in the corresponding release tags and absent from the preceding stable releases (3.11.2, 4.18.1, 5.4.1, 5.5.1).
Earliest verified affected stable source: 3.11.0. Verification delegates to JwksSignatureUtils.verify without the configured key type; v3.10.2 applied getKeyType to the matcher.
Suggested severity
Suggested CVSS v3.1 vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/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-YOKBDVE3.