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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | ruby-oauth2 | 2.0.25-1 | — |
| Debian 13 | ruby-oauth2 | No fix yet | — |
| Debian 12 | ruby-oauth2 | 1.4.4-1+deb12u1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | ruby-oauth2 | No fix yet | — |
| Ubuntu 16.04 LTS | ruby-oauth2 | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | ruby3.2-oauth2 +2 | 2.0.22-r0 | — |
| Wolfi rolling | ruby4.0-oauth2 | 2.0.22-r1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | oauth2 | >= 0.4.0, < 2.0.22 | 2.0.22 | GHSA-pp92-crg2-gfv9 |