{"id":"CVE-2026-54603","revision":"47c7c632ae0d49248e4900250a3caef5","records":[{"revision":"47c7c632ae0d49248e4900250a3caef5","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-54603","aliases":[],"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.","state":0,"publishedAt":"2026-07-28T16:29:03.566+00:00","modifiedAt":"2026-10-05T17:06:33.683+00:00","affected":[{"ecosystem":"Vendor product","name":"oauth2","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"ruby-oauth\",\n                    \"product\": \"oauth2\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 0.4.0, < 2.0.22\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","score":8.6,"severity":"HIGH"}],"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"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-54603","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-54603","identifiers":["CVE-2026-54603"]},"retained":false,"historicalAffected":[]}],"coverage":[]}