CVE-2025-58067: Google sign in Google Sign-In For Rails Allowed Vulnerability
MODERATECVE-2025-58067 is a MODERATE (CVSS 4.2) google sign-in for rails allowed vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Google sign in libraries in the RubyGems ecosystem. The issue involves google sign-in for rails allowed redirect to protocol-relative uri. Remediation is available by upgrading affected packages to version 1.3.1.
CVE-2025-58067 at a Glance
Security Impact
CVSS: 4.2
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N).
How to Fix CVE-2025-58067
To remediate this vulnerability, upgrade all affected Google sign in dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade google_sign_in to 1.3.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for google_sign_in
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-58067, inspect your project dependencies for Google sign in:
inspect dependencies for google_sign_in
Analyze the terminal output to locate any version of Google sign in in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In Google sign in, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-58067 Affected Google sign in Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
google_sign_in
|
RubyGems |
< 1.3.1
|
1.3.1
|
References
Frequently Asked Questions
What is CVE-2025-58067?
Which Google sign in versions are affected?
What version fixes CVE-2025-58067?
Is google_sign_in affected?
What is the CVSS score of CVE-2025-58067?
What CWE is associated with CVE-2025-58067?
How can I check RubyGems dependencies for CVE-2025-58067?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5jch-xhw4-r43v",
"modified" : "2025-09-01T20:06:09Z",
"published" : "2025-08-29T20:07:47Z",
"aliases" : [ "CVE-2025-58067" ],
"summary" : "Google Sign-In for Rails allowed redirect to protocol-relative URI",
"details" : "## Summary\n\nIt is possible to redirect a user to another origin if the \"proceed_to\" value in the session store is set to a protocol-relative URL.\n\n## Details\n\nThe google_sign_in gem persists an optional URL for redirection after authentication. If this URL is set to a protocol-relative URL, it improperly passes the \"same origin\" check, and it's possible for the user to be redirected to another origin after authentication, possibly resulting in exposure of authentication information if this attack is chained with other attacks.\n\nNormally the value of this URL is only written and read by the library or the calling application. However, it may be possible to set this session value from a malicious site with a form submission.\n\n## Impact\n\nAny Rails applications using the google_sign_in gem may be vulnerable, if this vector can be chained with another attack that is able to modify the OAuth2 request parameters.\n\n## Workarounds\n\nNo known workarounds.\n\n## Credits\n\nThis issue was responsibly reported by Hackerone user [muntrive](https://hackerone.com/muntrive?type=user).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "google_sign_in"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.3.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/basecamp/google_sign_in/security/advisories/GHSA-5jch-xhw4-r43v"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-58067"
}, {
"type" : "WEB",
"url" : "https://github.com/basecamp/google_sign_in/pull/75"
}, {
"type" : "WEB",
"url" : "https://github.com/basecamp/google_sign_in/commit/e97aef4626b1bcbd2c6f01f7dd25f12ac855d4cc"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/basecamp/google_sign_in"
}, {
"type" : "WEB",
"url" : "https://github.com/basecamp/google_sign_in/releases/tag/v1.3.1"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/google_sign_in/CVE-2025-58067.yml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-601" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-08-29T20:07:47Z",
"nvd_published_at" : "2025-08-29T21:15:36Z"
}
}