Authorized-applications endpoints act on a nil resource owner
Published: September 24, 2026
SECURITY IDENTIFIERS
- GHSA: GHSA-q735-3ffp-vv6j
- Vendor Advisory: https://github.com/doorkeeper-gem/doorkeeper/security/advisories/GHSA-q735-3ffp-vv6j
GEM
SEVERITY
CVSS v3.x: 6.5 (Medium)
UNAFFECTED VERSIONS
< 0.2.0
PATCHED VERSIONS
~> 5.9.9
>= 6.0.0.rc2
DESCRIPTION
Doorkeeper::AuthorizedApplicationsController guards its actions with before_action :authenticate_resource_owner!, but that helper merely evaluates the configured resource_owner_authenticator and ignores its return value. When the authenticator returns nil without halting the request — which is what Doorkeeper's own default authenticator does — the actions proceed with current_resource_owner == nil. Since nil matches every record whose resource_owner_id is NULL, an unauthenticated caller can list and revoke all client_credentials tokens issued by the server.
RELATED
- https://rubygems.org/gems/doorkeeper/versions/6.0.0.rc2
- https://github.com/doorkeeper-gem/doorkeeper/releases/tag/v6.0.0.rc2
- https://rubygems.org/gems/doorkeeper/versions/5.9.9
- https://github.com/doorkeeper-gem/doorkeeper/releases/tag/v5.9.9
- https://github.com/doorkeeper-gem/doorkeeper/issues/1448
- https://github.com/advisories/GHSA-h5m9-42h9-vcq6
- https://github.com/doorkeeper-gem/doorkeeper/security/advisories/GHSA-q735-3ffp-vv6j
