Skip to main content
Menu
Advisories

Failed JWKS fetch is retried for every bearer token, with no back-off

GHSA-3342-VFW6-P36CPublished Updated GitHub

Description

While the authorization server's JWKS endpoint is failing or serving no keys, any unauthenticated client can make a Micronaut resource server re-request the JWKS once per request. It does this by sending a bearer string that merely parses as a signed JWT, such as the 29-character eyJhbGciOiJSUzI1NiJ9.e30.AAAA. For failures that raise an exception (non-2xx, connection refused, unparseable body), each such request also writes an ERROR log entry with a stack trace of about 5 KB. The attacker cannot cause the outage, every token is already rejected during it, no token is accepted, and the application keeps answering 401 within milliseconds. The effect is therefore limited to a 1:1 outbound...

Affected and patched versions

The following ranges cover stable releases.

Release lineAffected versionsFirst patched releaseFix commit
3.11.x and earlier>= 1.3.0, < 3.11.33.11.3f46394a6e8
4.x>= 4.0.0, < 4.18.24.18.22d7847dc48
5.0.x–5.4.x>= 5.0.0, < 5.4.25.4.266fb6559ed
5.5.x>= 5.5.0, < 5.5.25.5.27f0bb073ec

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.3.0. getJWKSet reloads whenever the cached set is null, so failed retrievals are retried without backoff; v1.2.3 loads eagerly instead.

Suggested severity

Suggested CVSS v3.1 vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L. 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-DSCZJQZC.

Affected versions

References

GitHub · micronaut-projects/micronaut-security