CVE-2025-57821
Basecamp's Google Sign-In adds Google sign-in to Rails …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/basecamp/google_sign_in/commit/85903651201257d4f14b97d4582e6d968ac32f15
- github.com/basecamp/google_sign_in/pull/73
- github.com/basecamp/google_sign_in/releases/tag/v1.3.0
- github.com/basecamp/google_sign_in/security/advisories/GHSA-7pwc-wh6m-44q3
- github.com/basecamp/google_sign_in/commit/a0548a604fb17e4eb1a57029f0d87e34e8499623
- nvd.nist.gov/vuln/detail/CVE-2025-57821
- github.com/rubysec/ruby-advisory-db/blob/master/gems/google_sign_in/CVE-2025-57821.yml
- github.com/advisories/GHSA-7pwc-wh6m-44q3
- nvd.nist.gov/vuln/detail/CVE-2025-57821
- cve.org/CVERecord?id=CVE-2025-57821
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.