Open redirect in prior-to-login via request path with leading slashes
Description
When micronaut.security.redirect.prior-to-login=true is enabled, there is an open redirect in the login flow. Anyone who can get a logged-out user to follow a link such as app.example/
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 | d0d073d19d |
| 4.x | >= 4.0.0, < 4.18.2 | 4.18.2 | 914a4e34cf |
| 5.0.x–5.4.x | >= 5.0.0, < 5.4.2 | 5.4.2 | 156920b2f6 |
| 5.5.x | >= 5.5.0, < 5.5.2 | 5.5.2 | a1d92f1ccb |
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: 2.0.0. The full request URI is written to and read from ORIGINAL_URI without a local-path restriction; the class is absent in v1.4.0.
Suggested severity
Suggested CVSS v3.1 vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/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-S35IVDLK.