CVE-2025-57821

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

Published Aug 27, 2025 CVSS 3.1 · 4.2 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-25913 Google Sign-In for Rails allowed redirects to malformed URLs
Github GHSA Github GHSA GHSA-7pwc-wh6m-44q3 Google Sign-In for Rails allowed redirects to malformed URLs
History
Type Values Removed Values Added
First Time appeared Basecamp
Basecamp basecamp
Vendors & Products Basecamp
Basecamp basecamp
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Basecamp's Google Sign-In for Rails allowed redirects to a malformed URL
Weaknesses CWE-601
References
Metrics cvssV3_1

{'score': 4.2, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 27, 2025, 6:53 PM
Reserved
Aug 20, 2025, 2:30 PM
Status
Deferred
Published
Aug 27, 2025, 5:15 PM
Modified
Jun 17, 2026, 9:43 AM