Skip to content
Heist/ feed
Back to feed
Medium

Basecamp's Google Sign-In for Rails allowed redirects to protocol-relative URI

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-58067
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 11:05 UTC · Revision 1

Source evidence

Basecamp's Google Sign-In for Rails allowed redirects to protocol-relative URI

core-osv · Original source

Published 29 Aug 2025, 21:05 UTC

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.

osv:CVE-2025-58067
Complete source record
{
  "id": "a39c8f9887f520e674b11186ad814628191003fd910c992e70a2ccc1c1c33c1f",
  "url": "https://osv.dev/vulnerability/CVE-2025-58067",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "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.",
    "evidence": "osv:CVE-2025-58067",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2025-58067",
      "aliases": [
        "CVE-2025-58067",
        "GHSA-5jch-xhw4-r43v"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/basecamp/google_sign_in",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "e7f2a9ab59fe38020781560e8989f9697ace75c2"
                },
                {
                  "fixed": "e97aef4626b1bcbd2c6f01f7dd25f12ac855d4cc"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.3.1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "e97aef4626b1bcbd2c6f01f7dd25f12ac855d4cc"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "e7f2a9ab59fe38020781560e8989f9697ace75c2"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v1.3.1"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.3.0",
            "v1.2.1",
            "v1.2.0",
            "v1.1.2",
            "v1.1.1",
            "v1.1.0",
            "v1.0.2",
            "v1.0.1",
            "v1.0.0",
            "v0.1.4",
            "v0.1.3",
            "v0.1.2",
            "v0.1.1",
            "v0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-58067.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:27.978382270Z",
      "provider": "osv",
      "references": [
        "https://github.com/basecamp/google_sign_in/releases/tag/v1.3.1",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/58xxx/CVE-2025-58067.json",
        "https://github.com/basecamp/google_sign_in/security/advisories/GHSA-5jch-xhw4-r43v",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-58067",
        "https://github.com/basecamp/google_sign_in/commit/e97aef4626b1bcbd2c6f01f7dd25f12ac855d4cc",
        "https://github.com/basecamp/google_sign_in/pull/75"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-601"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/58xxx/CVE-2025-58067.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-58067",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 494839,
  "published_at": "2025-08-29T21:05:22.209+00:00"
}