{"id":"CVE-2026-54603","state":"PUBLISHED","title":"OAuth2::Client#request: Protocol-relative redirect Location overrides authority, leaking bearer Authorization to attacker host","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.","publishedAt":"2026-07-28T16:29:03.566Z","updatedAt":"2026-10-05T17:06:33.683Z","severity":{"score":8.6,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["ruby-oauth oauth2"],"affected":[{"vendor":"ruby-oauth","product":"oauth2","versions":[{"version":">= 0.4.0, < 2.0.22","status":"affected"}]}],"references":["https://github.com/ruby-oauth/oauth2/security/advisories/GHSA-pp92-crg2-gfv9","https://github.com/ruby-oauth/oauth2/commit/0f0a474f1b38453e119e660c2daca742d4378ce9","https://github.com/ruby-oauth/oauth2/releases/tag/v2.0.22","https://lists.debian.org/debian-lts-announce/2026/10/msg00014.html"],"weaknesses":["CWE-200","CWE-601"],"ingestedAt":"2026-10-29T20:12:24.861Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/54xxx/CVE-2026-54603.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-54603","state":"PUBLISHED","datePublished":"2026-07-28T16:29:03.566Z","dateUpdated":"2026-10-05T17:06:33.683Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-06-15T19:45:23.540Z"},"containers":{"cna":{"title":"OAuth2::Client#request: Protocol-relative redirect Location overrides authority, leaking bearer Authorization to attacker host","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"ruby-oauth","product":"oauth2","versions":[{"version":">= 0.4.0, < 2.0.22","status":"affected"}]}],"references":[{"url":"https://github.com/ruby-oauth/oauth2/security/advisories/GHSA-pp92-crg2-gfv9","name":"https://github.com/ruby-oauth/oauth2/security/advisories/GHSA-pp92-crg2-gfv9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ruby-oauth/oauth2/commit/0f0a474f1b38453e119e660c2daca742d4378ce9","name":"https://github.com/ruby-oauth/oauth2/commit/0f0a474f1b38453e119e660c2daca742d4378ce9","tags":["x_refsource_MISC"]},{"url":"https://github.com/ruby-oauth/oauth2/releases/tag/v2.0.22","name":"https://github.com/ruby-oauth/oauth2/releases/tag/v2.0.22","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":8.6,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-200","lang":"en","description":"CWE-200: Exposure of Sensitive Information to an Unauthorized Actor","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-601","lang":"en","description":"CWE-601: URL Redirection to Untrusted Site ('Open Redirect')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-07-28T16:29:03.566Z"},"source":{"advisory":"GHSA-pp92-crg2-gfv9","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/ruby-oauth/oauth2/security/advisories/GHSA-pp92-crg2-gfv9","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-29T13:51:29.506941Z","id":"CVE-2026-54603","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-29T13:52:49.325Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2026/10/msg00014.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-10-05T17:06:33.683Z"}}]}}}