Skip to main content
Menu
Advisories

Open redirect in prior-to-login via request path with leading slashes

GHSA-FP7X-M8RJ-C99QPublished Updated GitHub

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///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 lineAffected versionsFirst patched releaseFix commit
3.11.x and earlier>= 2.0.0, < 3.11.33.11.3d0d073d19d
4.x>= 4.0.0, < 4.18.24.18.2914a4e34cf
5.0.x–5.4.x>= 5.0.0, < 5.4.25.4.2156920b2f6
5.5.x>= 5.5.0, < 5.5.25.5.2a1d92f1ccb

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.

Affected versions

References

GitHub · micronaut-projects/micronaut-security