CVE-2025-57821: Basecamp's Google Sign-In for Rails allowed redirects to a malformed URL
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.
Vector CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N · CWE-601
Tracked companies
Mapped from the CVE’s affected-product data, NVD CPE matches, vendor advisories or package feeds. A mapping means the vendor’s software is named, not that its hosted service was exposed.
Status incidents that name it
No tracked status incident names this CVE.
Affected vendors and products
basecamp: google_sign_in
References
- CVE record on cve.org (opens in new tab)
- NVD entry (opens in new tab)
- github.com/basecamp/google_sign_in/commit/85903651201257d4f14b97d4582e6d968ac32f… (opens in new tab)
- github.com/basecamp/google_sign_in/pull/73 (opens in new tab)
- github.com/basecamp/google_sign_in/releases/tag/v1.3.0 (opens in new tab)
- github.com/basecamp/google_sign_in/security/advisories/GHSA-7pwc-wh6m-44q3 (opens in new tab)
- CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (opens in new tab)
- This product uses data from the NVD API but is not endorsed or certified by the NVD. (opens in new tab)
- Known Exploited Vulnerabilities catalog from CISA. (opens in new tab)
- EPSS scores from FIRST (Exploit Prediction Scoring System). (opens in new tab)