Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. google_sign_in
  4. ›
  5. CVE-2025-57821

CVE-2025-57821: Google Sign-In for Rails allowed redirects to malformed URLs

August 27, 2025 (updated August 29, 2025)

It is possible to craft a malformed URL that passes the “same origin” check, resulting in the user being redirected to another origin.

References

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

Code Behaviors & Features

Detect and mitigate CVE-2025-57821 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.3.0

Fixed versions

  • 1.3.0

Solution

Upgrade to version 1.3.0 or above.

Impact 4.2 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

Source file

gem/google_sign_in/CVE-2025-57821.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 02 Oct 2025 00:20:07 +0000.