# CVE-2025-57821: Basecamp's Google Sign-In for Rails allowed redirects to a malformed URL

- Severity: Medium 4.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 22% of CVEs (2026-12-01)
- Published: 2025-08-27T16:32:36.284Z
- Modified: 2026-06-17T09:43:30.010Z
- Also known as: GHSA-7pwc-wh6m-44q3
- Weaknesses: CWE-601
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- basecamp google_sign_in: < 1.3.0
- google_sign_in (RubyGems): before 1.3.0

## Every score

- GitHub_M: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N`

## References

- <https://github.com/basecamp/google_sign_in/security/advisories/GHSA-7pwc-wh6m-44q3> (web)
- <https://github.com/basecamp/google_sign_in/pull/73> (web)
- <https://github.com/basecamp/google_sign_in/commit/85903651201257d4f14b97d4582e6d968ac32f15> (web)
- <https://github.com/basecamp/google_sign_in/releases/tag/v1.3.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-57821> (advisory)
- <https://github.com/basecamp/google_sign_in/commit/a0548a604fb17e4eb1a57029f0d87e34e8499623> (web)
- <https://github.com/basecamp/google_sign_in> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/google_sign_in/CVE-2025-57821.yml> (web)

## Sources

- CVE List: [CVE-2025-57821](https://www.cve.org/CVERecord?id=CVE-2025-57821), CVE Terms of Use, modified 2025-08-27
- GitHub Advisory Database: [GHSA-7pwc-wh6m-44q3](https://github.com/advisories/GHSA-7pwc-wh6m-44q3), CC-BY-4.0, modified 2025-08-29
- NVD: [CVE-2025-57821](https://nvd.nist.gov/vuln/detail/CVE-2025-57821), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-57821 · Whole record: https://cve.day/CVE-2025-57821.json · Rebuilt by cve.day 2026-11-25T22:59:03.762Z
