# GHSA-FP7X-M8RJ-C99Q: Open redirect in prior-to-login via request path with leading slashes

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

## 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.2
- io.micronaut.security:micronaut-security (Maven): from 5.5.0, fixed in 5.5.2

## Description

## Summary
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 https://app.example///evil.example/x can make the application's own login response send that user to an attacker-chosen host right after they sign in with their real credentials. No cookie planting or XSS is needed, because the application writes the hostile redirect target itself from the request line. Nothing secret travels with the redirect (the JWT/SESSION cookie stays on the application), but the victim lands on the attacker's page straight from the genuine login page, which is a strong phishing position.

## 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](https://github.com/micronaut-projects/micronaut-security/commit/d0d073d19df5db6715bf792f2eaf538c19a2f5e5) |
| 4.x | `>= 4.0.0, < 4.18.2` | `4.18.2` | [914a4e34cf](https://github.com/micronaut-projects/micronaut-security/commit/914a4e34cf74ab411883e77686018e2238ef88ce) |
| 5.0.x–5.4.x | `>= 5.0.0, < 5.4.2` | `5.4.2` | [156920b2f6](https://github.com/micronaut-projects/micronaut-security/commit/156920b2f670e38a81f9ca312cb652641d9ea6bb) |
| 5.5.x | `>= 5.5.0, < 5.5.2` | `5.5.2` | [a1d92f1ccb](https://github.com/micronaut-projects/micronaut-security/commit/a1d92f1ccbf68f9f2c92d5b91f608369857b0b9d) |

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](https://github.com/micronaut-projects/micronaut-security/blob/v2.0.0/security/src/main/java/io/micronaut/security/errors/CookiePriorToLoginPersistence.java). 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`.

## References

- https://github.com/micronaut-projects/micronaut-security/security/advisories/GHSA-fp7x-m8rj-c99q

Page: https://cve.now/GHSA-FP7X-M8RJ-C99Q

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