{"id":"CVE-2026-54603","published":"2026-07-28T16:29:03Z","modified":"2026-10-05T17:06:33Z","title":"OAuth2::Client#request: Protocol-relative redirect Location overrides authority, leaking bearer Authorization to…","vendor":"ruby-oauth","product":"oauth2","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00482,"percentile":0.34027,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"},{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"references":[{"url":"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","tags":["x_refsource_MISC"]},{"url":"https://github.com/ruby-oauth/oauth2/releases/tag/v2.0.22","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2026/10/msg00014.html","tags":[]}],"priority":{"score":12.8,"factors":[{"name":"EPSS percentile","points":6.81},{"name":"CVSS severity","points":6.02}]},"vendorSlug":"ruby-oauth","affectedVersions":[{"vendor":"ruby-oauth","product":"oauth2","versions":[">= 0.4.0, < 2.0.22"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-29T13:51:29.506941Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"oauth2","vulnerableRanges":[">=0.4.0, <2.0.22"],"patched":["2.0.22"],"from":["GHSA-pp92-crg2-gfv9"],"provenance":"source"}],"summary":{"text":"The oauth2 Ruby gem (ruby-oauth), from 0.4.0 through 2.0.21, has a flaw in OAuth2::Client#request where a protocol-relative redirect Location is allowed to override the request authority, so the bearer Authorization header can be sent to an attacker-controlled host. An attacker positioned to supply a redirect response from the targeted service can cause the client to leak the bearer credential, requiring only network-level reachability and no authentication or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:35:57Z"},"euvd":{"id":"EUVD-2026-49903","exploited":false,"provenance":"source"}}