Skip to main content
Menu
Advisories

JWT issuer check accepts any suffix of the expected issuer, even empty

GHSA-QR8W-HXV9-92GHPublished Updated GitHub

Description

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 lineAffected versionsFirst patched releaseFix commit
4.x>= 4.12.0, < 4.18.24.18.2ec8efe940f
5.0.x–5.4.x>= 5.0.0, < 5.4.25.4.29eaf63564c
5.5.x>= 5.5.0, < 5.5.25.5.22bc2199cc7

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. 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.

Affected versions

References

GitHub · micronaut-projects/micronaut-security