Vulnerability DatabaseGHSA-wcp8-qw9q-vjpp

GHSA-wcp8-qw9q-vjpp: 
Ruby vulnerability analysis and mitigation

Am I affected?

This issue only arises when all three of the following hold:

  1. password is included in Doorkeeper's grant_flows
  2. Doorkeeper.config.skip_client_authentication_for_password_grant is enabled
  3. a token request carries scope=openid If any one of them does not hold, no affected version can reach this code path and you are not affected. The password grant is not enabled by default, and the skip option is not enabled by default. Once such a token has been issued, use_refresh_token extends the issue: the refresh token returned alongside it re-mints the same kind of ID Token with no credentials presented at all. See Re-issuance through the refresh token below.

Summary

In doorkeeper-openid_connect >= 1.7.1, < 1.10.2, a password grant that runs without client authentication issues a signed ID Token that has no aud (audience) claim. The request succeeds with HTTP 200 and the ID Token is otherwise well-formed and correctly signed — iss and sub are present — so it looks valid apart from the missing claim. OpenID Connect Core 1.0 §2 lists aud as REQUIRED, and §3.1.3.7 requires a Relying Party to verify that aud contains its own client_id. aud is the only claim that states who an ID Token was issued for, so an ID Token without it carries no indication of its intended recipient and cannot be constrained to one.

Details

With skip_client_authentication_for_password_grant enabled, Doorkeeper accepts a grant_type=password request that presents no client_id and no client credentials. The access token it issues therefore has no associated OAuth application. This gem sources the ID Token's aud claim from that application's uid. With no application, aud resolves to nil, and in this version range the serializer dropped blank claims instead of rejecting them — so the ID Token was signed and returned with aud simply absent:

status=200  keys=["access_token", "created_at", "expires_in", "id_token", "scope", "token_type"]
id_token claims = ["auth_time", "exp", "iat", "iss", "sub", ...]
has aud? false
access token row: application_id=nil

Preconditions: obtaining such a token requires only a valid account of the requester's own — no client credentials and no other user's password. Impersonation does not work here: a request carrying credentials the requester does not hold is rejected with 400 invalid_grant. Re-issuance through the refresh token. When use_refresh_token is enabled, the token response also carries a refresh token, and refreshing an application-less access token requires no credentials of any kind. Doorkeeper's RefreshTokenRequest skips client authentication when no credentials are presented (validate_client returns early on blank credentials) and skips the client-match check when the token has no application (validate_client_match returns early on a blank application_id). The refreshed token again has application_id=nil, so the same aud-less ID Token is produced — along with a new refresh token, making the issuance repeatable:

POST /oauth/token  grant_type=refresh_token  (no client_id, no client secret, no password)
status=200  keys=["access_token", "created_at", "expires_in", "id_token", "refresh_token", "scope", "token_type"]
id_token claims = ["auth_time", "exp", "iat", "iss", "sub", ...]
has aud? false
new access token row: application_id=nil

What can be asserted: the identity in the resulting ID Token is always the requester's own. This issue does not allow impersonating another user, escalating privileges, or obtaining another user's data. The affected surface is that the resulting authentication assertion is not bound to an audience, so nothing in it limits which Relying Party may accept it. A Relying Party performing the aud verification OIDC Core requires will reject such a token. The access token issued alongside it is a normal password-grant access token; its capabilities follow from enabling the password grant and are not specific to this issue.

Version history

VersionsBehavior with an application-less access token
<= 1.7.0audience dereferenced application.uid on nil, so the request failed with NoMethodError — no ID Token was produced
>= 1.7.1, < 1.10.2application.try(:uid) returns nil, and a blank claim was dropped during serialization → a signed ID Token was issued without aud, on the initial password grant and on every subsequent refresh
>= 1.10.2A blank REQUIRED claim raises Errors::MissingRequiredClaim instead of being dropped, so no ID Token lacking aud can be issued
The change in 1.10.2 was made as general conformance hardening for all REQUIRED claims (iss, sub, aud, exp, iat) and is recorded in that release's changelog.

Patches

Fixed in 1.10.2 (released 2026-06-22). Upgrade to >= 1.10.2; the current release series is unaffected. Note for upgraders: on >= 1.10.2 a request that would previously have produced an aud-less ID Token instead fails with Errors::MissingRequiredClaim, which surfaces as a 500. No ID Token lacking aud is issued either way, but if your deployment exercises this request path, remove one of the preconditions below rather than relying on the error. No backport to the 1.7–1.10.1 range is planned.

Workarounds

If you cannot upgrade immediately, either of the following removes the precondition:

  • disable skip_client_authentication_for_password_grant, so password grants must authenticate a client and the resulting access token always has an application; or
  • remove password from grant_flows. Withholding the openid scope from password grants also prevents an ID Token from being built, but Doorkeeper has no per-grant-type scope configuration: removing openid from optional_scopes disables OpenID Connect for every client, and per-application scopes do not apply to a token that has no application. Restricting the scope to password grants specifically requires custom validation around PasswordAccessTokenRequest. Disabling use_refresh_token removes only the repeat-issuance described above, not the issue itself.

Severity

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N (4.9, Moderate). PR:L because a valid account is required; C:L / I:L because the identity that can be asserted is the requester's own; S:C because the affected component is the authorization server while the consequence is borne by a Relying Party; AC:H because acceptance depends on a Relying Party that omits the aud verification OIDC Core requires, which is outside the requester's control. Practical consequences are bounded by that same check — a conformant Relying Party rejects an ID Token whose aud does not contain its own client_id. The ID Token's 120-second default lifetime is not itself a bound: with use_refresh_token enabled the assertion can be re-minted indefinitely without presenting any credentials.

References

  • OpenID Connect Core 1.0 §2 (ID Token, REQUIRED claims) and §3.1.3.7 (ID Token validation)
  • eecf23b — "Fix audience method for null application" (introduced application.try(:uid), first released in 1.7.1)
  • b2538cb — "Raise on blank REQUIRED ID Token claims instead of dropping them" (the fix, first released in 1.10.2)

Source: NVD

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-4859-2mvh-r787HIGH7.1
  • Ruby logoRuby
  • phlex
NoYesNov 23, 2026
GHSA-6gjg-cqh9-p2xmMEDIUM5.9
  • Ruby logoRuby
  • phlex
NoYesNov 23, 2026
GHSA-jjpx-qcfc-pqwpMEDIUM5.9
  • Ruby logoRuby
  • phlex
NoYesNov 23, 2026
GHSA-fxxw-9rf3-3f2wMEDIUM5.9
  • Ruby logoRuby
  • phlex
NoYesNov 23, 2026
GHSA-wcp8-qw9q-vjppMEDIUM4.9
  • Ruby logoRuby
  • doorkeeper-openid_connect
NoYesNov 23, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management