CakePHP Authentication: Open redirect weakness via backslash bypass
Moderate severity
GitHub Reviewed
Published
Jun 17, 2026
in
cakephp/authentication
•
Updated Aug 14, 2026
Package
Affected versions
>= 4.0.0, < 4.1.1
>= 3.0.0, < 3.3.6
< 2.11.1
Patched versions
4.1.1
3.3.6
2.11.1
Description
Published to the GitHub Advisory Database
Jun 17, 2026
Reviewed
Jun 17, 2026
Published by the National Vulnerability Database
Jul 9, 2026
Last updated
Aug 14, 2026
Impact
The
getLoginRedirect()method contains a weakness to backslash bypasses allowing redirect targets with attacker controlled hostnames.Patches
2.11.1, 3.3.6 and 4.1.1 contain a fix for this issue.
Workarounds
If you are unable to upgrade, you should consider adding application validation to the redirect query string parameter to mitigate this vulnerability.
References