CVE-2026-54603
published high CVSS 3.1 · 8.6OAuth2::Client#request: Protocol-relative redirect Location overrides authority, leaking bearer Authorization to attacker host
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ruby-oauth | — | oauth2>= 0.4.0, < 2.0.22 | Affected | Not stated | GitHub_M |
| Debian | bookworm | ruby-oauth2 | Advisory build | 1.4.4-1+deb12u1 | DLA-4822-1 |
| Ubuntu | bionic | ruby-oauth2 | Advisory build | 1.4.0-2ubuntu0.1~esm1 | USN-9268-1 |
| Ubuntu | focal | ruby-oauth2 | Advisory build | 1.4.1-2ubuntu0.1~esm1 | USN-9268-1 |
| Ubuntu | jammy | ruby-oauth2 | Advisory build | 1.4.4-1+deb12u1build0.22.04.1 | USN-9268-1 |
| Ubuntu | noble | ruby-oauth2 | Advisory build | 2.0.7-2ubuntu0.1~esm1 | USN-9268-1 |
| Ubuntu | resolute | ruby-oauth2 | Advisory build | 2.0.18-1ubuntu0.1~esm1 | USN-9268-1 |
| Ubuntu | xenial | ruby-oauth2 | Advisory build | 1.0.0-2ubuntu0.1~esm1 | USN-9268-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.6 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ruby-oauth | oauth2 | >= 0.4.0, < 2.0.22 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-200 CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
- CWE-601 CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
References
4Provider assertions
3GitHub_M · cna
OAuth2::Client#request: Protocol-relative redirect Location overrides authority, leaking bearer Authorization to attacker host
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d4309069c906a6929268ce37523a815fdc022266382cfedffacc0dcffade9753
- Ingested
- 05 Oct 2026, 17:33:56 UTC
- Source record
- Official CVE record