# GHSA-QR8W-HXV9-92GH: JWT issuer check accepts any suffix of the expected issuer, even empty

- Database: GitHub
- Severity: CVSS 6.8 (Medium)
- Published: 2026-11-11
- Modified: 2026-11-11

## Affected versions

- io.micronaut.security:micronaut-security (Maven): from 4.12.0, fixed in 4.18.2
- io.micronaut.security:micronaut-security (Maven): from 5.0.0, fixed in 5.4.2
- io.micronaut.security:micronaut-security (Maven): from 5.5.0, fixed in 5.5.2

## Description

## Summary
Since 4.12.0, micronaut-security's JWT issuer check accepts any token whose iss is the tail end of the configured issuer, down to an empty iss. As a result, a user holding a genuine token from a different issuer that signs with the same key is authenticated by a service configured to trust only the expected issuer, with that token's subject and roles. For example, with micronaut.security.token.jwt.claims-validators.issuer=admin-portal, validly signed tokens with iss set to portal, l, "", / or https:// all pass. The attached reproducer starts four services sharing one HMAC secret. A token issued by portal gets 200 from a @Secured(IS_AUTHENTICATED) endpoint on the service configured for...

## Affected and patched versions

The following ranges cover stable releases.

| Release line | Affected versions | First patched release | Fix commit |
| --- | --- | --- | --- |
| 4.x | `>= 4.12.0, < 4.18.2` | `4.18.2` | [ec8efe940f](https://github.com/micronaut-projects/micronaut-security/commit/ec8efe940f211b9620fe27bbd59767e94b275b0c) |
| 5.0.x–5.4.x | `>= 5.0.0, < 5.4.2` | `5.4.2` | [9eaf63564c](https://github.com/micronaut-projects/micronaut-security/commit/9eaf63564c471ad9b39f0afd4658c3d7d363e025) |
| 5.5.x | `>= 5.5.0, < 5.5.2` | `5.5.2` | [2bc2199cc7](https://github.com/micronaut-projects/micronaut-security/commit/2bc2199cc718670570183b18cf2d357336384d83) |

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.12.0](https://github.com/micronaut-projects/micronaut-security/blob/v4.12.0/security/src/main/java/io/micronaut/security/token/ClaimsUtils.java). ClaimsUtils uses endsWith and an unbounded memoization cache; the class is absent in v4.11.4.

The 3.11.3 release also hardens older issuer validators and provider resolution. The suffix-comparison flaw described in this advisory was introduced in 4.12.0; 3.x does not contain ClaimsUtils and is not listed as affected by that flaw.

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

## References

- https://github.com/micronaut-projects/micronaut-security/security/advisories/GHSA-qr8w-hxv9-92gh

Page: https://cve.now/GHSA-QR8W-HXV9-92GH

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