# GHSA-8Q27-VGX7-M7RX: Memory leak in NimbusJsonWebTokenSignatureValidator via unverified alg

- 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 4.8.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
An unbounded cache in security-jwt's NimbusJsonWebTokenSignatureValidator lets anyone who can submit a JWT to an application make the JVM permanently retain memory, up to about 19 KB per rejected token, without holding a valid token or any key. Crafted alg names can also slow validation of genuine tokens. Only applications that pass tokens from outsiders to the imperative JsonWebTokenValidator or JsonWebTokenSignatureValidator beans in their own code are exposed. The built-in bearer, cookie and OpenID flows go through the reactive validator, which has no such cache.

## Affected and patched versions

The following ranges cover stable releases.

| Release line | Affected versions | First patched release | Fix commit |
| --- | --- | --- | --- |
| 4.x | `>= 4.8.0, < 4.18.2` | `4.18.2` | [2a449b26fc](https://github.com/micronaut-projects/micronaut-security/commit/2a449b26fcd02ca17ae9856f42c6ece6bf09de9d) |
| 5.0.x–5.4.x | `>= 5.0.0, < 5.4.2` | `5.4.2` | [56e62d3616](https://github.com/micronaut-projects/micronaut-security/commit/56e62d361659dfde4c1a88cb5208fc89cc440a88) |
| 5.5.x | `>= 5.5.0, < 5.5.2` | `5.5.2` | [43a9855342](https://github.com/micronaut-projects/micronaut-security/commit/43a98553420ee20b210b1f864befada9477ecc67) |

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.8.0](https://github.com/micronaut-projects/micronaut-security/blob/v4.8.0/security-jwt/src/main/java/io/micronaut/security/token/jwt/nimbus/NimbusJsonWebTokenSignatureValidator.java). The class introduces sortedSignaturesMap.computeIfAbsent keyed by the unverified algorithm; the class is absent in v4.7.0.

## 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-9WUPS9YC`.

## References

- https://github.com/micronaut-projects/micronaut-security/security/advisories/GHSA-8q27-vgx7-m7rx

Page: https://cve.now/GHSA-8Q27-VGX7-M7RX

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