Description
Rodauth before 2.47.0 fails to validate protocol-relative return-to paths in confirm_password, login_return_to_requested_location, and two_factor_auth_return_to_requested_location features. Attackers can craft paths with leading double slashes that browsers resolve as protocol-relative URLs, redirecting authenticated users to attacker-controlled sites after login or password confirmation.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| jeremyevans | rodauth | < 2.47.0 | 2.47.0 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | ruby-rodauth | 2.47.0-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | ruby-rodauth | No fix yet | — |
References
- Patch Commit patch
- GitHub Security Advisory (GHSA-h9m4-vm9w-h43m) vendor-advisory
- https://github.com/jeremyevans/rodauth product
- VulnCheck Advisory: Rodauth before 2.47.0 Open Redirect via Return-to Path third-party-advisory