Vulnerability · Published Jul 28, 2026 · Assigned by GitHub_M
CVE-2026-54603OAuth2::Client#request: Protocol-relative redirect Location overrides authority, leaking bearer Authorization to attacker host
High 8.6
In plain English
A high-severity information exposure in oauth2 from ruby-oauth. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 39% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ruby-oauth2 | 1.4.4-1+deb12u1 | DEBIAN-CVE-2026-54603 |
| Debian:13 | ruby-oauth2 | no fix listed | DEBIAN-CVE-2026-54603 |
| Debian:14 | ruby-oauth2 | 2.0.25-1 | DEBIAN-CVE-2026-54603 |
| RubyGems | oauth2 | 2.0.22 | GHSA-pp92-crg2-gfv9 |
| Ubuntu:22.04:LTS | ruby-oauth2 | no fix listed | UBUNTU-CVE-2026-54603 |
| Ubuntu:24.04:LTS | ruby-oauth2 | no fix listed | UBUNTU-CVE-2026-54603 |
| Ubuntu:26.04:LTS | ruby-oauth2 | no fix listed | UBUNTU-CVE-2026-54603 |
| Ubuntu:26.10 | ruby-oauth2 | no fix listed | UBUNTU-CVE-2026-54603 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| ruby-oauth | oauth2 | >= 0.4.0, < 2.0.22 |
Weakness: CWE-200, CWE-601 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
References
- https://github.com/ruby-oauth/oauth2/security/advisories/GHSA-pp92-crg2-gfv9 x_refsource_CONFIRM
- https://github.com/ruby-oauth/oauth2/commit/0f0a474f1b38453e119e660c2daca742d4378ce9 x_refsource_MISC
- https://github.com/ruby-oauth/oauth2/releases/tag/v2.0.22 x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2026/10/msg00014.html