GHSA-7pwc-wh6m-44q3

Suggest an improvement
Source
https://github.com/advisories/GHSA-7pwc-wh6m-44q3
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-7pwc-wh6m-44q3/GHSA-7pwc-wh6m-44q3.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-7pwc-wh6m-44q3
Aliases
Published
2025-08-27T16:46:16Z
Modified
2025-08-27T20:08:15.577970Z
Severity
  • 4.2 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N CVSS Calculator
Summary
Google Sign-In for Rails allowed redirects to malformed URLs
Details

Summary

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

Details

The googlesignin gem persists an optional URL for redirection after authentication. If this URL is malformed, it's possible for the user to be redirected to another origin after authentication, possibly resulting in exposure of authentication information such as the token.

Normally the value of this URL is only written and read by the library. If applications are configured to store session information in a database, there is no known vector to exploit this vulnerability. However, applications may be configured to store this information in a session cookie, in which case it may be chained with a session cookie attack to inject a crafted URL.

Impact

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.

Workarounds

If you are unable to upgrade this library, then you may mitigate the chained attack by explicitly setting SameSite=Lax or SameSite=Strict on the application session cookie.

Credits

This issue was responsibly reported by Hackerone user muntrive.

Database specific
{
    "severity": "MODERATE",
    "nvd_published_at": "2025-08-27T17:15:48Z",
    "github_reviewed": true,
    "github_reviewed_at": "2025-08-27T16:46:16Z",
    "cwe_ids": [
        "CWE-601"
    ]
}
References

Affected packages

RubyGems / google_sign_in

Package

Name
google_sign_in
Purl
pkg:gem/google_sign_in

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.3.0

Affected versions

0.*

0.1
0.1.1
0.1.2
0.1.3
0.1.4

1.*

1.0.0
1.0.1
1.0.2
1.1.0
1.1.1
1.1.2
1.2.0
1.2.1