CVE-2025-57821 json
Basecamp's Google Sign-In for Rails allowed redirects to a malformed URL
published last yr. modified 4mo ago also GHSA-7pwc-wh6m-44q3 , EUVD-2025-25913
- cvss
- 4.2
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 16%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rubygems google_sign_in 1.3.0
Is CVE-2025-57821 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
0.25% chance of exploitation in the next 30 days, higher than 16% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.2 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N |
| GitHub | 3.1 | 4.2 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | google_sign_in | <1.3.0 |
1.3.0 |
Affected products
- basecamp google_sign_in
Classification
- Weakness
-
- CWE-601 URL Redirection to Untrusted Site
References
-
github.com
/basecamp/google_sign_in/pull/73
web
-
github.com
/basecamp/google_sign_in/commit/85903651201257d4f14b97d4582e6d968ac32f15
web
-
github.com
/basecamp/google_sign_in/commit/a0548a604fb17e4eb1a57029f0d87e34e8499623
web
-
github.com
/basecamp/google_sign_in/security/advisories/GHSA-7pwc-wh6m-44q3
web
-
github.com
/basecamp/google_sign_in/releases/tag/v1.3.0
web
-
nvd.nist.gov
/vuln/detail/CVE-2025-57821
advisory
-
github.com
/basecamp/google_sign_in
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/google_sign_in/CVE-2025-57821.yml
web
Sources
- CVE List CVE-2025-57821
- GitHub Advisory GHSA-7pwc-wh6m-44q3
- NVD CVE-2025-57821
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.