RubySec

Providing security resources for the Ruby community

GHSA-q735-3ffp-vv6j (doorkeeper): Authorized-applications endpoints act on a nil resource owner

Authorized-applications endpoints act on a nil resource owner

Published: September 24, 2026

SECURITY IDENTIFIERS

GEM

doorkeeper

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