CVE-2026-54603: CWE-200: Exposure of Sensitive Information to an Unauthorized Actor in ruby-oauth oauth2
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.
AI Analysis
Technical Summary
CVE-2026-54603 affects the ruby-oauth oauth2 library, specifically versions from 0.4.0 up to 2.0.21. The vulnerability arises when a protocol-relative redirect Location header is returned during OAuth2::Client#request, which overrides the intended request authority. As a result, the bearer Authorization header containing sensitive credentials is sent to an attacker-controlled host, leading to exposure of sensitive information (CWE-200). This issue is resolved in version 2.0.22.
Potential Impact
An attacker controlling the redirect Location can receive the bearer Authorization header, exposing sensitive credentials. This can lead to unauthorized access to protected resources. The CVSS 3.1 base score is 8.6 (high severity), reflecting network attack vector, low attack complexity, no privileges or user interaction required, scope change, and high confidentiality impact.
Mitigation Recommendations
Upgrade the ruby-oauth oauth2 library to version 2.0.22 or later, where this vulnerability is fixed. No other mitigation or temporary fix is indicated. Patch status is confirmed by the version fix information.
CVE-2026-54603: CWE-200: Exposure of Sensitive Information to an Unauthorized Actor in ruby-oauth oauth2
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 v3.1
Score 8.6high
Affected software
ruby-oauth
oauth2
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-54603 affects the ruby-oauth oauth2 library, specifically versions from 0.4.0 up to 2.0.21. The vulnerability arises when a protocol-relative redirect Location header is returned during OAuth2::Client#request, which overrides the intended request authority. As a result, the bearer Authorization header containing sensitive credentials is sent to an attacker-controlled host, leading to exposure of sensitive information (CWE-200). This issue is resolved in version 2.0.22.
Potential Impact
An attacker controlling the redirect Location can receive the bearer Authorization header, exposing sensitive credentials. This can lead to unauthorized access to protected resources. The CVSS 3.1 base score is 8.6 (high severity), reflecting network attack vector, low attack complexity, no privileges or user interaction required, scope change, and high confidentiality impact.
Mitigation Recommendations
Upgrade the ruby-oauth oauth2 library to version 2.0.22 or later, where this vulnerability is fixed. No other mitigation or temporary fix is indicated. Patch status is confirmed by the version fix information.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-15T19:45:23.540Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a68de669c2644c7f8e9c1a1
Added to database: 07/28/2026, 16:52:54 UTC
Last enriched: 07/29/2026, 20:37:03 UTC
Last updated: 09/12/2026, 22:01:34 UTC
Views: 58
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.