# GHSA-3342-VFW6-P36C: Failed JWKS fetch is retried for every bearer token, with no back-off

- Database: GitHub
- Severity: CVSS 3.7 (Low)
- Published: 2026-11-11
- Modified: 2026-11-11

## Affected versions

- io.micronaut.security:micronaut-security-jwt (Maven): from 1.3.0, fixed in 3.11.3
- io.micronaut.security:micronaut-security-jwt (Maven): from 4.0.0, fixed in 4.18.2
- io.micronaut.security:micronaut-security-jwt (Maven): from 5.0.0, fixed in 5.4.2
- io.micronaut.security:micronaut-security-jwt (Maven): from 5.5.0, fixed in 5.5.2

## Description

## Summary
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 line | Affected versions | First patched release | Fix commit |
| --- | --- | --- | --- |
| 3.11.x and earlier | `>= 1.3.0, < 3.11.3` | `3.11.3` | [f46394a6e8](https://github.com/micronaut-projects/micronaut-security/commit/f46394a6e821b772a53c8398ee7b733956d6d915) |
| 4.x | `>= 4.0.0, < 4.18.2` | `4.18.2` | [2d7847dc48](https://github.com/micronaut-projects/micronaut-security/commit/2d7847dc48cab5894cf751b57952f933e4cbbece) |
| 5.0.x–5.4.x | `>= 5.0.0, < 5.4.2` | `5.4.2` | [66fb6559ed](https://github.com/micronaut-projects/micronaut-security/commit/66fb6559ed00c6b5e0f74b38cc282621ba7866a2) |
| 5.5.x | `>= 5.5.0, < 5.5.2` | `5.5.2` | [7f0bb073ec](https://github.com/micronaut-projects/micronaut-security/commit/7f0bb073ec5d8e286b85a73a49e9084721ff0b9a) |

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](https://github.com/micronaut-projects/micronaut-security/blob/v1.3.0/security-jwt/src/main/java/io/micronaut/security/token/jwt/signature/jwks/JwksSignature.java). 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`.

## References

- https://github.com/micronaut-projects/micronaut-security/security/advisories/GHSA-3342-vfw6-p36c

Page: https://cve.now/GHSA-3342-VFW6-P36C

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
