It is possible to redirect a user to another origin if the "proceed_to" value in the session store is set to a protocol-relative URL.
The googlesignin gem persists an optional URL for redirection after authentication. If this URL is set to a protocol-relative URL, it improperly passes the "same origin" check, and it's possible for the user to be redirected to another origin after authentication, possibly resulting in exposure of authentication information if this attack is chained with other attacks.
Normally the value of this URL is only written and read by the library or the calling application. However, it may be possible to set this session value from a malicious site with a form submission.
Any Rails applications using the googlesignin gem may be vulnerable, if this vector can be chained with another attack that is able to modify the OAuth2 request parameters.
No known workarounds.
This issue was responsibly reported by Hackerone user muntrive.
{ "severity": "MODERATE", "github_reviewed": true, "github_reviewed_at": "2025-08-29T20:07:47Z", "nvd_published_at": "2025-08-29T21:15:36Z", "cwe_ids": [ "CWE-601" ] }