RubyGems (Ruby)Worst: High1 advisory

oauth2: known vulnerabilities

oauth2 has 1 reviewed security advisory in the GitHub Advisory Database — 1 high. The most recent was published 2026-07-28. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the oauth2 versions running across your servers, containers and images, and ranks what to patch first.

How to fix oauth2

Upgrade oauth2 to a release at or above the fixed version shown for each advisory below. For RubyGems (Ruby):

bundle update oauth2 to 2.0.22 (or gem install oauth2 -v 2.0.22)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (1)

OAuth2::Client#request: Protocol-relative redirect Location overrides authority, leaking bearer Authorization to attacker host High 8.6 CWE-200 CWE-601 — Affected: from 0.4.0 up to 2.0.22. Fixed in 2.0.22. Published 2026-07-28. GHSA-pp92-crg2-gfv9 · CVE-2026-54603

Find oauth2 across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.