Loading advisory.
Loading advisory.
OAuth 2.1 Provider: Unprivileged users can register OAuth clients
You're affected if all of the following are true:
Published 2026-04-16 22:44 UTC · Modified 2026-05-05 16:26 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| @better-auth/oauth-provider | npm | >= 1.4.8-beta.7, < 1.6.5 >= 1.7.0-beta.0, <= 1.7.0-beta.1 | 1.6.5 | npm install @better-auth/oauth-provider@1.6.5 |
You're affected if all of the following are true:
Using @better-auth/oauth-provider at version specified below
You configured clientPrivileges in the plugin options expecting it to gate who can create OAuth clients
The /oauth2/create-client or /admin/oauth2/create-client endpoints are reachable by authenticated users you don't fully trust
If clientPrivileges is not configured, this bug has no security consequence for your deployment
The clientPrivileges option documents a create action, but the OAuth client creation endpoints did not invoke the hook before persisting new clients. Deployments that configured clientPrivileges to restrict client registration were not actually restricted — any authenticated user could reach the create endpoints and register an OAuth client with attacker-chosen redirect URIs and metadata.
Non-create operations (read, list, update, delete, rotate) enforced the hook correctly. Only the create path was missing the check.
Unauthorized registration of OAuth clients by any authenticated user, under deployments that expected clientPrivileges to block them.
Attacker-controlled redirect_uris on those clients enable phishing flows that present as registered first-party applications.
If the SERVER_ONLY admin creation endpoint is also exposed to low-privilege users (a separate deployment misconfiguration), additional sensitive fields including skip_consent become writable.
Fixed in @better-auth/oauth-provider@1.6.5 Both create endpoints now call the clientPrivileges hook with action "create" before persisting the client record.
If you cannot upgrade immediately:
Block the /oauth2/create-client and /admin/oauth2/create-client routes at your reverse proxy or middleware layer for any user who should not be able to register clients.
Do not expose the admin creation endpoint (it is SERVER_ONLY by design and should not be reachable by end-user sessions).
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.002 on 2026-11-24 to 0.004 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.002 | first score | v2026.06.15 |
| 2026-11-26 | 0.004 | 0.002 | v2026.06.15 |