Description
Doorkeeper version 5.0.0 and later contains an information disclosure vulnerability that allows an attacker to retrieve the client secret only intended for the OAuth application owner. After authorizing the application and allowing access, the attacker simply needs to request the list of their authorized applications in a JSON format (usually GET /oauth/authorized_applications.json). An application is vulnerable if the authorized applications controller is enabled.
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-doorkeeper | 5.0.3-1 | — |
| Debian 13 | ruby-doorkeeper | 5.0.3-1 | — |
| Debian 12 | ruby-doorkeeper | 5.0.3-1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | doorkeeper | >= 5.0.0, < 5.0.3 | 5.0.3 | GHSA-j7vx-8mqj-cqp9 |
| RubyGems | doorkeeper | >= 5.1.0, < 5.1.1 | 5.1.1 | GHSA-j7vx-8mqj-cqp9 |
| RubyGems | doorkeeper | >= 5.2.0, < 5.2.5 | 5.2.5 | GHSA-j7vx-8mqj-cqp9 |
| RubyGems | doorkeeper | >= 5.3.0, < 5.3.2 | 5.3.2 | GHSA-j7vx-8mqj-cqp9 |