{
  "id": "CVE-2026-54603",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-54603",
  "published_at": "2026-07-28T16:29:03.566Z",
  "title": "OAuth2::Client#request: Protocol-relative redirect Location overrides authority, leaking bearer Authorization to attacker host",
  "vendor": "ruby-oauth",
  "product": "oauth2",
  "cvss": {
    "score": 8.6,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "OAuth2 is a Ruby wrapper for the OAuth 2.0 and 2.1 authorization frameworks, including OpenID Connect (OIDC). From 0.4.0 to 2.0.21, a protocol-relative redirect Location returned to OAuth2::Client#request overrides the request authority, so the bearer Authorization header is sent to an attacker-controlled host, leaking the credential. This issue is fixed in version 2.0.22.",
  "cwe": "CWE-200",
  "cvss_by_source": {
    "cna": 8.6
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "ruby-oauth",
        "product": "oauth2",
        "ranges": [
          "\u003e= 0.4.0, \u003c 2.0.22"
        ],
        "fixed_in": [
          "2.0.22"
        ]
      }
    ],
    "upgrade": [
      "Upgrade oauth2 to 2.0.22 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/ruby-oauth/oauth2/security/advisories/GHSA-pp92-crg2-gfv9"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/ruby-oauth/oauth2/commit/0f0a474f1b38453e119e660c2daca742d4378ce9"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/ruby-oauth/oauth2/releases/tag/v2.0.22"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
