{"id":"CVE-2025-58067","aliases":["CVE-2025-58067","GHSA-5jch-xhw4-r43v"],"related":[],"kind":"vulnerability","state":"published","title":"Basecamp's Google Sign-In for Rails allowed redirects to protocol-relative URI","summary":"Basecamp's Google Sign-In adds Google sign-in to Rails applications. Prior to version 1.3.1, 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. 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. Any 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. This issue has been patched in version 1.3.1. There are no workarounds.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Basecamp's Google Sign-In adds Google sign-in to Rails applications. Prior to version 1.3.1, 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. 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. Any 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. This issue has been patched in version 1.3.1. There are no workarounds.","source":"cvelist"},{"lang":"en","text":"## 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).","format":"markdown","source":"ghsa"},{"lang":"es","text":"Google Sign-In de Basecamp añade el inicio de sesión de Google a las aplicaciones Rails. Antes de la versión 1.3.1, es posible redirigir a un usuario a otro origen si el valor “proceed_to” en el almacén de la sesión se establece como una URL relativa al protocolo. Normalmente, el valor de esta URL solo es escrito y leído por la biblioteca o la aplicación que realiza la llamada. Sin embargo, puede ser posible establecer este valor de la sesión desde un sitio malicioso mediante el envío de un formulario. Cualquier aplicación Rails que utilice la gema google_sign_in puede ser vulnerable, si este vector puede encadenarse con otro ataque que sea capaz de modificar los parámetros de la solicitud OAuth2. Este problema ha sido parcheado en la versión 1.3.1. No hay soluciones alternativas.","source":"nvd"}],"published":"2025-08-29T20:07:47.000Z","modified":"2026-10-18T21:10:00.120Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","score":4.2,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","score":4.2,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","score":4.2,"rating":"MEDIUM"}],"cwes":["CWE-601"],"affected":[{"ranges":[{"version":"< 1.3.1","status":"affected"}],"vendor":"basecamp","product":"google_sign_in","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.3.1"}],"ecosystem":"RubyGems","package":"google_sign_in","purl":"pkg:gem/google_sign_in","source":"ghsa"}],"references":[{"url":"https://github.com/basecamp/google_sign_in/security/advisories/GHSA-5jch-xhw4-r43v","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/basecamp/google_sign_in/pull/75","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/basecamp/google_sign_in/commit/e97aef4626b1bcbd2c6f01f7dd25f12ac855d4cc","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/basecamp/google_sign_in/releases/tag/v1.3.1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-58067","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/basecamp/google_sign_in","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/google_sign_in/CVE-2025-58067.yml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-09-02T13:52:36.468Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-58067","url":"https://www.cve.org/CVERecord?id=CVE-2025-58067","licence":"CVE Terms of Use","modified":"2025-09-02T13:52:49.721Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5jch-xhw4-r43v","url":"https://github.com/advisories/GHSA-5jch-xhw4-r43v","licence":"CC-BY-4.0","modified":"2025-09-01T20:58:23.736Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-58067","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-58067","licence":"Public domain","modified":"2026-10-18T21:10:00.120Z"}],"updatedAt":"2026-11-25T22:59:03.905Z","epss":{"score":0.00268,"percentile":0.20252,"date":"2026-12-01T12:00:22.000Z"}}