GHSA-5jch-xhw4-r43v

Suggest an improvement
Source
https://github.com/advisories/GHSA-5jch-xhw4-r43v
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-5jch-xhw4-r43v/GHSA-5jch-xhw4-r43v.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-5jch-xhw4-r43v
Aliases
  • CVE-2025-58067
Published
2025-08-29T20:07:47Z
Modified
2025-09-01T20:38:30.626360Z
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 redirect to protocol-relative URI
Details

Summary

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

Details

The googlesignin 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.

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

Impact

Any Rails applications using the googlesignin gem may be vulnerable, if this vector can be chained with another attack that is able to modify the OAuth2 request parameters.

Workarounds

No known workarounds.

Credits

This issue was responsibly reported by Hackerone user muntrive.

Database specific
{
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2025-08-29T20:07:47Z",
    "nvd_published_at": "2025-08-29T21:15:36Z",
    "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.1

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
1.3.0