Ruby/doorkeeper/2.1.1


Doorkeeper is an OAuth 2 provider for Rails and Grape.

https://rubygems.org/gems/doorkeeper
MIT

11 Security Vulnerabilities

Moderate severity vulnerability that affects doorkeeper

Published date: 2018-08-13T20:49:10Z
CVE: CVE-2016-6582
Links:

Withdrawn, accidental duplicate publish.

The Doorkeeper gem before 4.2.0 for Ruby might allow remote attackers to conduct replay attacks or revoke arbitrary tokens by leveraging failure to implement the OAuth 2.0 Token Revocation specification.

Affected versions: >= 1.2.0, < 4.2.0 (30 affected versions) Show all vulnerable versions

Doorkeeper Improper Authentication vulnerability

Published date: 2023-06-12T19:50:34Z
CVE: CVE-2023-34246
Links:

OAuth RFC 8252 says https://www.rfc-editor.org/rfc/rfc8252#section-8.6

the authorization server SHOULD NOT process authorization requests automatically without user consent or interaction, except when the identity of the client can be assured. This includes the case where the user has previously approved an authorization request for a given client id

But Doorkeeper automatically processes authorization requests without user consent for public clients that have been previously approved. Public clients are inherently vulnerable to impersonation, their identity cannot be assured.

Issue https://github.com/doorkeeper-gem/doorkeeper/issues/1589

Fix https://github.com/doorkeeper-gem/doorkeeper/pull/1646

Affected versions: < 5.6.6 (114 affected versions) Show all vulnerable versions

Doorkeeper: When using public clients, any client can revoke any access token

Published date: 2026-11-19T20:47:25Z
CVE: CVE-2026-115472
Links:

Summary

An improper authorization issue affects Doorkeeper's OAuth token revocation flow when public (non-confidential) clients are in use. This vulnerability can lead to tokens being revoked without correct authorization. The issue is fixed in Doorkeeper 5.9.1.

Affected versions: < 5.9.1 (124 affected versions) Show all vulnerable versions

Doorkeeper is vulnerable to stored XSS and code execution

Published date: 2018-03-13T20:44:48Z
CVE: CVE-2018-1000088
Links:

Doorkeeper version 2.1.0 through 4.2.5 contains a Cross Site Scripting (XSS) vulnerability in web view's OAuth app form, user authorization prompt web view that can result in Stored XSS on the OAuth Client's name will cause users interacting with it will execute payload. This attack appear to be exploitable via The victim must be tricked to click an opaque link to the web view that runs the XSS payload. A malicious version virtually indistinguishable from a normal link. This vulnerability appears to have been fixed in 4.2.6, 4.3.0.

Affected versions: >= 2.1.0, <= 4.2.5 (21 affected versions) Show all vulnerable versions

Doorkeeper gem does not revoke tokens & uses wrong auth/auth method

Published date: 2016-08-18
CVE: 2016-6582
CVSS V3: 9.1
Links:

Doorkeeper failed to implement OAuth 2.0 Token Revocation (RFC 7009) in the following ways:

  1. Public clients making valid, unauthenticated calls to revoke a token would not have their token revoked
  2. Requests were not properly authenticating the client credentials but were, instead, looking at the access token in a second location
  3. Because of 2, the requests were also not authorizing confidential clients' ability to revoke a given token. It should only revoke tokens that belong to it.

The security implication is: OAuth 2.0 clients who log out a user expect to have the corresponding access & refresh tokens revoked, preventing an attacker who may have already hijacked the session from continuing to impersonate the victim. Because of the bug described above, this is not the case. As far as OWASP is concerned, this counts as broken authentication design.

MITRE has assigned CVE-2016-6582 due to the security issues raised. An attacker, thanks to 1, can replay a hijacked session after a victim logs out/revokes their token. Additionally, thanks to 2 & 3, an attacker via a compromised confidential client could grief other clients by revoking their tokens (albeit this is an exceptionally narrow attack with little value).

Affected versions: 30 affected versions Show all vulnerable versions

Doorkeeper gem has stored XSS on authorization consent view

Published date: 2018-02-21
CVE: 2018-1000088
CVSS V3: 7.6
Links:

Stored XSS on the OAuth Client's name will cause users being prompted for consent via the implicit grant type to execute the XSS payload.

The XSS attack could gain access to the user's active session, resulting in account compromise.

Any user is susceptible if they click the authorization link for the malicious OAuth client. Because of how the links work, a user cannot tell if a link is malicious or not without first visiting the page with the XSS payload.

If 3rd parties are allowed to create OAuth clients in the app using Doorkeeper, upgrade to the patched versions immediately.

Additionally there is stored XSS in the nativeredirecturi form element.

DWF has assigned CVE-2018-1000088.

Affected versions: 21 affected versions Show all vulnerable versions

Doorkeeper Improper Authentication vulnerability

Published date: 2023-06-12
CVE: 2023-34246
CVSS V3: 4.2
Links:

OAuth RFC 8252 says https://www.rfc-editor.org/rfc/rfc8252#section-8.6

the authorization server SHOULD NOT process authorization requests automatically without user consent or interaction, except when the identity of the client can be assured. This includes the case where the user has previously approved an authorization request for a given client id

But Doorkeeper automatically processes authorization requests without user consent for public clients that have been previous approved. Public clients are inherently vulnerable to impersonation, their identity cannot be assured.

Issue https://github.com/doorkeeper-gem/doorkeeper/issues/1589

Fix https://github.com/doorkeeper-gem/doorkeeper/pull/1646

Affected versions: 114 affected versions Show all vulnerable versions

Open redirect in the authorization endpoint's deny path

Published date: 2026-09-24
CVSS V3: 4.7
Links:

DELETE /oauth/authorize (the deny action of Doorkeeper::AuthorizationsController) builds and sends its accessdenied error response without validating clientid, redirecturi or responsetype first. An authenticated resource owner can therefore be redirected — or formpost-submitted — to an arbitrary, unregistered URI supplied in then request, and a missing redirecturi raises an unhandled exception (HTTP 500).

Affected versions: 126 affected versions Show all vulnerable versions

Authorized-applications endpoints act on a nil resource owner

Published date: 2026-09-24
CVSS V3: 6.5
Links:

Doorkeeper::AuthorizedApplicationsController guards its actions with beforeaction :authenticateresourceowner!, but that helper merely evaluates the configured resourceownerauthenticator 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 currentresourceowner == nil. Since nil matches every record whose resourceownerid is NULL, an unauthenticated caller can list and revoke all clientcredentials tokens issued by the server.

Affected versions: 124 affected versions Show all vulnerable versions

Doorkeeper Gem for Ruby stores sensitive information in production logs

Published date: 2015-02-10
Links:

Doorkeeper Gem for Ruby contains a flaw in lib/doorkeeper/engine.rb. The issue is due to the program storing sensitive information in production logs. This may allow a local attacker to gain access to sensitive information.

Affected versions: 41 affected versions Show all vulnerable versions
Secure versions: [5.9.1, 5.9.2, 5.9.3, 5.9.5, 5.9.6, 5.9.7, 5.9.9, 6.0.0.rc2, 6.0.0.rc3]
Recommendation: Update to version 5.9.9.

136 Other Versions

Version License Security Released
5.2.0 MIT 7 2019-09-16 - 08:31 about 7 years
5.2.0.rc3 MIT 6 2019-08-28 - 07:35 about 7 years
5.2.0.rc2 MIT 6 2019-06-17 - 08:27 over 7 years
5.2.0.rc1 MIT 6 2019-05-23 - 15:17 over 7 years
5.1.2 MIT 6 2020-10-19 - 07:54 about 6 years
5.1.1 MIT 6 2020-05-02 - 13:38 over 6 years
5.1.0 MIT 7 2019-04-17 - 14:35 over 7 years
5.1.0.rc2 MIT 6 2019-03-22 - 07:49 over 7 years
5.1.0.rc1 MIT 6 2019-01-17 - 08:41 almost 8 years
5.0.3 MIT 6 2020-05-05 - 08:43 over 6 years
5.0.2 MIT 7 2018-10-25 - 09:25 about 8 years
5.0.1 MIT 7 2018-10-10 - 14:08 about 8 years
5.0.0 MIT 7 2018-08-24 - 13:55 about 8 years
5.0.0.rc2 MIT 6 2018-07-17 - 10:01 over 8 years
5.0.0.rc1 MIT 5 2018-06-11 - 11:42 over 8 years
4.4.3 MIT 5 2018-09-19 - 08:41 about 8 years
4.4.2 MIT 5 2018-08-20 - 15:24 over 8 years
4.4.1 MIT 5 2018-07-27 - 14:58 over 8 years
4.4.0 MIT 5 2018-07-17 - 09:57 over 8 years
4.3.2 MIT 7 2018-03-28 - 09:49 over 8 years
4.3.1 MIT 7 2018-03-03 - 09:44 over 8 years
4.3.0 MIT 7 2018-02-23 - 15:06 over 8 years
4.2.6 MIT 7 2017-05-26 - 00:08 over 9 years
4.2.5 MIT 9 2017-02-12 - 16:09 almost 10 years
4.2.0 MIT 9 2016-08-18 - 21:15 over 10 years
4.1.0 MIT 10 2016-07-29 - 23:09 over 10 years
4.0.0 MIT 10 2016-07-01 - 21:31 over 10 years
4.0.0.rc4 MIT 10 2016-05-17 - 18:14 over 10 years
4.0.0.rc3 MIT 10 2016-04-20 - 22:23 over 10 years
4.0.0.rc2 MIT 10 2016-03-03 - 01:56 over 10 years
4.0.0.rc1 MIT 10 2016-02-26 - 03:36 over 10 years
3.1.0 MIT 10 2015-12-23 - 18:14 almost 11 years
3.0.1 MIT 10 2015-09-24 - 03:49 about 11 years
3.0.0 MIT 10 2015-07-30 - 19:09 over 11 years
3.0.0.rc2 MIT 10 2015-07-09 - 22:32 over 11 years
3.0.0.rc1 MIT 10 2015-05-12 - 03:18 over 11 years
2.2.2 MIT 10 2015-07-30 - 19:15 over 11 years
2.2.1 MIT 10 2015-05-05 - 02:12 over 11 years
2.2.0 MIT 10 2015-04-19 - 12:54 over 11 years
2.1.4 MIT 10 2015-03-27 - 16:14 over 11 years
2.1.3 MIT 10 2015-03-01 - 22:34 over 11 years
2.1.2 MIT 10 2015-02-26 - 02:39 over 11 years
2.1.1 MIT 11 2015-02-06 - 16:12 almost 12 years
2.1.0 MIT 11 2015-01-13 - 20:40 almost 12 years
2.0.1 MIT 9 2014-12-17 - 19:44 almost 12 years
2.0.0 MIT 9 2014-12-16 - 21:03 almost 12 years
2.0.0.rc3 MIT 10 2014-12-14 - 16:59 almost 12 years
2.0.0.rc2 MIT 10 2014-12-09 - 13:18 almost 12 years
2.0.0.alpha1 MIT 10 2014-10-11 - 21:04 about 12 years
1.4.2 MIT 8 2015-03-03 - 04:09 over 11 years