# GHSA-H926-PF3J-RWQ5: Authenticator ignores provider order: the fastest provider's roles win

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

## Affected versions

- io.micronaut.security:micronaut-security (Maven): from 2.0.0, fixed in 3.11.3
- io.micronaut.security:micronaut-security (Maven): from 4.0.0, fixed in 4.18.2
- io.micronaut.security:micronaut-security (Maven): from 5.0.0, fixed in 5.4.3
- io.micronaut.security:micronaut-security (Maven): from 5.5.0, fixed in 5.5.3

## Description

## Summary
When an application has several authentication providers under the default ANY strategy, Authenticator uses whichever provider answers first, not the highest-precedence provider that accepts the user. So a user whose own password is accepted by two providers can be logged in with the roles of the lower-precedence one, even though the application ordered a more restrictive provider ahead of it. The attached reproducer shows a contractor, limited to ROLE_CONTRACTOR by a HIGHEST_PRECEDENCE provider, getting HTTP 200 and the protected body from a @Secured("ROLE_EMPLOYEE") route in 110 to 647 of 1000 Basic-auth requests. The control instance returns 403 in all 1000.

## Affected and patched versions

The following ranges cover stable releases.

| Release line | Affected versions | First patched release | Fix commit |
| --- | --- | --- | --- |
| 3.11.x and earlier | `>= 2.0.0, < 3.11.3` | `3.11.3` | [1ce3b68002](https://github.com/micronaut-projects/micronaut-security/commit/1ce3b680029a6d2b89c7d7cc2fc0969e7d1913b8) |
| 4.x | `>= 4.0.0, < 4.18.2` | `4.18.2` | [b47d20c71e](https://github.com/micronaut-projects/micronaut-security/commit/b47d20c71eef31b7ed8b3f257adca98897eca259) |
| 5.0.x–5.4.x | `>= 5.0.0, < 5.4.3` | `5.4.3` | [6f51f0db0a](https://github.com/micronaut-projects/micronaut-security/commit/6f51f0db0aa82c4531dee06f70050464090161d8) |
| 5.5.x | `>= 5.5.0, < 5.5.3` | `5.5.3` | [997f25db38](https://github.com/micronaut-projects/micronaut-security/commit/997f25db38f96e998411a44203af23770da0f218) |

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.2, 5.5.2).

The lower bound is the earliest stable release the finding traces the behavior to.

## 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-U1ARHH5B`.

## References

- https://github.com/micronaut-projects/micronaut-security/security/advisories/GHSA-h926-pf3j-rwq5

Page: https://cve.now/GHSA-H926-PF3J-RWQ5

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