ruby-oauth2 — security advisory
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.
- Products
- ruby-oauth2
- Affected versions
- 1.4.4-1, 2.0.17-1, 2.0.18-1, 2.0.25-1, 2.0.9-1
- Fixed versions
- 1.4.4-1+deb12u1, 2.0.25-1
- CVEs
- CVE-2026-54603
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 04:07 UTC · Revision 1
Source evidence
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.
osv:DEBIAN-CVE-2026-54603
ruby-oauth2
Fixed versions: 1.4.4-1+deb12u1
ruby-oauth2
Fixed versions: Not specified
ruby-oauth2
Fixed versions: 2.0.25-1
Complete source record
{
"id": "d086b4cdd938bbce1cb0b58c8d5f668eba89be0e62ccdd1d915b57e21075a972",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-54603",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2026-54603",
"summary": "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.",
"evidence": "osv:DEBIAN-CVE-2026-54603",
"products": [
{
"name": {
"value": "ruby-oauth2",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.4.4-1+deb12u1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": [
{
"value": "1.4.4-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "ruby-oauth2",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.0.17-1",
"evidence": "/affected/1/versions"
},
{
"value": "2.0.18-1",
"evidence": "/affected/1/versions"
},
{
"value": "2.0.25-1",
"evidence": "/affected/1/versions"
},
{
"value": "2.0.9-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "ruby-oauth2",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.0.25-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": [
{
"value": "2.0.17-1",
"evidence": "/affected/2/versions"
},
{
"value": "2.0.18-1",
"evidence": "/affected/2/versions"
},
{
"value": "2.0.9-1",
"evidence": "/affected/2/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2026-54603",
"aliases": [
"DEBIAN-CVE-2026-54603"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.4.4-1+deb12u1"
}
]
}
],
"package": {
"name": "ruby-oauth2",
"purl": "pkg:deb/debian/ruby-oauth2?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"1.4.4-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-54603.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "ruby-oauth2",
"purl": "pkg:deb/debian/ruby-oauth2?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"2.0.17-1",
"2.0.18-1",
"2.0.25-1",
"2.0.9-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-54603.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.0.25-1"
}
]
}
],
"package": {
"name": "ruby-oauth2",
"purl": "pkg:deb/debian/ruby-oauth2?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"2.0.17-1",
"2.0.18-1",
"2.0.9-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-54603.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-24T09:47:32.112667648Z",
"provider": "osv",
"upstream": [
"CVE-2026-54603"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2026-54603"
]
},
"related_cves": [
{
"value": "CVE-2026-54603",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 429010,
"published_at": "2026-07-28T17:16:52.227+00:00"
}