What’s Vulnerable › Vulnerabilities
CVE-2025-57821: Basecamp's Google Sign-In for Rails allowed redirects to a malformed URL
- Severity: medium (CVSS 4.2 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-08-27 · updated 2026-06-17
- Weakness: CWE-601
Description
Basecamp's Google Sign-In adds Google sign-in to Rails applications. Prior to version 1.3.0, it is possible to craft a malformed URL that passes the "same origin" check, resulting in the user being redirected to another origin. Rails applications configured to store the flash information in a session cookie may be vulnerable, if this can be chained with an attack that allows injection of arbitrary data into the session cookie. This issue has been patched in version 1.3.0. If upgrading is not possible at this time, a way to mitigate the chained attack can be done by explicitly setting SameSite=Lax or SameSite=Strict on the application session cookie.
Affected products
- basecamp google_sign_in: before 1.3.0
References
- https://github.com/basecamp/google_sign_in/commit/85903651201257d4f14b97d4582e6d968ac32f15
- https://github.com/basecamp/google_sign_in/pull/73
- https://github.com/basecamp/google_sign_in/releases/tag/v1.3.0
- https://github.com/basecamp/google_sign_in/security/advisories/GHSA-7pwc-wh6m-44q3
Get alerted when CVE-2025-57821 or the next vulnerability affects your stack