Vulnerability · Published Aug 27, 2025 · Assigned by GitHub_M

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

Medium 4.2

In plain English

A medium-severity open redirect in google_sign_in from basecamp. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 16% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.2Medium
Exploit odds (30 days)0.2%top 83.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
RubyGemsgoogle_sign_in1.3.0GHSA-7pwc-wh6m-44q3

Affected products (as reported)

VendorProductVersions
basecamp google_sign_in < 1.3.0

Weakness: CWE-601 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N

References