CVE-2026-54603
Received
Received - Intake
OAuth2 Ruby Gem Authorization Header Leak via Redirect
Vulnerability report for CVE-2026-54603, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.
Publication date: 2026-07-28
Last updated on: 2026-07-28
Assigner: GitHub, Inc.
Description
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.
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| ruby-oauth | oauth2 | From 2.0.22 (exc) to 2.0.21 (inc) |
| ruby-oauth | oauth2 | to 2.0.21 (inc) |
| oauth2 | oauth2 | From 0.4.0 (inc) to 2.0.22 (exc) |
| oauth2 | oauth2 | 2.0.22 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-200 | The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. |
| CWE-601 | The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. |