{"id":"CVE-2026-54603","summary":"OAuth2::Client#request: Protocol-relative redirect Location overrides authority, leaking bearer Authorization to attacker host","details":"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.","aliases":["GHSA-pp92-crg2-gfv9"],"modified":"2026-07-31T03:34:11.855305750Z","published":"2026-07-28T16:29:03.566Z","related":["CGA-v9xj-h368-r4rj"],"database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-200","CWE-601"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54603.json"},"references":[{"type":"WEB","url":"https://github.com/ruby-oauth/oauth2/releases/tag/v2.0.22"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54603.json"},{"type":"ADVISORY","url":"https://github.com/ruby-oauth/oauth2/security/advisories/GHSA-pp92-crg2-gfv9"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54603"},{"type":"FIX","url":"https://github.com/ruby-oauth/oauth2/commit/0f0a474f1b38453e119e660c2daca742d4378ce9"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ruby-oauth/oauth2","events":[{"introduced":"03f4efb927afd42c9fbd9da6ed029dd797539e58"},{"fixed":"0f0a474f1b38453e119e660c2daca742d4378ce9"},{"fixed":"551f434a81912763fb5a8e240cd00a6532e26970"}],"database_specific":{"source":["AFFECTED_FIELD","REFERENCES"],"extracted_events":[{"introduced":"0.4.0"},{"fixed":"2.0.22"}]}}],"versions":["v2.0.21","v2.0.20","v2.0.19","v2.0.18","v2.0.17","v2.0.16","v2.0.15","v2.0.14","v2.0.13","v2.0.12","v2.0.11","v2.0.10","v2.0.9","v2.0.7","v2.0.6","v2.0.5","v2.0.4","v2.0.3","v2.0.2","v2.0.1","v2.0.0","v2.0.0.rc3","v2.0.0.rc2","v2.0.0.rc1","v1.0.0","v0.9.4","v0.9.3","v0.9.2","v0.9.1","v0.8.0","v0.9.0","v0.7.1","v0.7.0","v0.6.1","v0.6.0","v0.5.2","v0.5.1","v0.5.0","v0.5.0.rc2","v0.5.0.rc1","v0.4.1","v0.4.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54603.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N"}]}