CVE-2025-57821
MEDIUM 4.2CVSS 3.1Google Sign-In for Rails allowed redirects to malformed URLs
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.
- Published
- 27 Aug 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-601
- Also known as
- GHSA-7pwc-wh6m-44q3
- Sources
- NVDJSONOSV GHSA-7pwc-wh6m-44q3JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.2 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.2 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | RubyGems | google_sign_in | < 1.3.0 | 1.3.0 |
References
- https://github.com/basecamp/google_sign_in/commit/85903651201257d4f14b97d4582e6d968ac32f15 · WEB
- https://github.com/basecamp/google_sign_in/pull/73 · WEB
- https://github.com/basecamp/google_sign_in/releases/tag/v1.3.0 · WEB
- https://github.com/basecamp/google_sign_in/security/advisories/GHSA-7pwc-wh6m-44q3 · 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
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 27 Aug 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 27 Aug 2025)