Skip to content
OpenAdvisories
High · 8.6 CVE-2026-54603 EUVD-2026-49903GHSA-pp92-crg2-gfv9

OAuth2::Client#request: Protocol-relative redirect Location overrides authority, leaking bearer Authorization to attacker host

Published Jul 28, 2026 · Updated Oct 5, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
ruby-oauth oauth2 >= 0.4.0, < 2.0.22 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ruby-oauth2 2.0.25-1 —
Debian 13 ruby-oauth2 No fix yet —
Debian 12 ruby-oauth2 1.4.4-1+deb12u1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 ruby-oauth2 No fix yet —
Ubuntu 26.04 LTS ruby-oauth2 No fix yet —
Ubuntu 24.04 LTS ruby-oauth2 No fix yet —
Ubuntu 22.04 LTS ruby-oauth2 No fix yet —
Ubuntu 20.04 LTS ruby-oauth2 No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS ruby-oauth2 No fix yet —
Ubuntu 16.04 LTS ruby-oauth2 No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling ruby3.2-oauth2 +2 2.0.22-r0 —
Wolfi rolling ruby4.0-oauth2 2.0.22-r1 —

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems oauth2 >= 0.4.0, < 2.0.22 2.0.22 GHSA-pp92-crg2-gfv9

References