GitHub Advisoryadvisory · RubyGems

GHSA-5jch-xhw4-r43v Google Sign-In for Rails allowed redirect to protocol-relative URI

MEDIUM Published 2025-08-29 Modified 2025-09-01 Official page ↗
Aliases
CVE-2025-58067
Ecosystem
RubyGems
Packages
google_sign_in
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
Weaknesses
CWE-601
Reviewed
2025-08-29

Affected packages

• RubyGems google_sign_in: < 1.3.1 → fixed in 1.3.1

Description

Summary 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. Details The google_sign_in 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. Impact Any Rails applications using the google_sign_in gem may be vulnerable, if this vector can be chained with another attack that is able to modify the OAuth2 request parameters. Workarounds No known workarounds. Credits This issue was responsibly reported by Hackerone user muntrive.

Related

Alias · CVE (1)

  • CVE-2025-58067 Basecamp's Google Sign-In adds Google sign-in to Rails applications. vulnerability

Weakness · CWE (1)

  • CWE-601 URL Redirection to Untrusted Site weakness

References