JWKS not bound to issuer, so one provider can sign tokens as another
Description
When micronaut-security is set up to accept JWTs from more than one identity provider, anyone holding one provider's signing key can mint a token that carries another provider's iss, and the application authenticates it as that other provider's user. The attacker needs no account and no victim interaction. They must, however, already control a key the application trusts, such as a malicious or compromised provider or a leaked key. With that key they could already assert any sub and roles under their own issuer, so the only new capability is claiming a foreign issuer. That matters to applications that separate providers or tenants by iss.
Affected and patched versions
The following ranges cover stable releases.
| Release line | Affected versions | First patched release | Fix commit |
|---|---|---|---|
| 3.11.x and earlier | >= 1.1.1, < 3.11.3 | 3.11.3 | bd72e87901 |
| 4.x | >= 4.0.0, < 4.18.2 | 4.18.2 | a27044e26b |
| 5.0.x–5.4.x | >= 5.0.0, < 5.4.2 | 5.4.2 | d005942467 |
| 5.5.x | >= 5.5.0, < 5.5.2 | 5.5.2 | 3b3e7afc37 |
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: 1.1.1. JWKS signature verification matches keys without any issuer binding.
Version 1.1.1 is the earliest stable source tag available in this repository. Releases before that tag have not been verified.
Suggested severity
Suggested CVSS v3.1 vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:L/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-GVORTNA2.