Auth bypass in Better-Auth
CVE-2026-41427
Better Auth is an authentication and authorization library for TypeScript. Prior to 1.6.5, 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. This vulnerability is fixed in 1.6.5.
Vulnerability class: Broken Access Control
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N.
EPSS exploit prediction
EPSS 0.002, 11.5th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Better-Auth — versions >= 1.4.8-beta.7, < 1.6.5, >= 1.7.0-beta.0, <= 1.7.0-beta.1
- Better-Auth Better-Auth\/oauth-Provider — versions 1.4.8, 1.7.0
- Better-Auth Oauth-Provider — versions >= 1.4.8-beta.7, < 1.6.5, >= 1.7.0-beta.0, <= 1.7.0-beta.1
Weakness classification (CWE)
References
- https://github.com/better-auth/better-auth/security/advisories/GHSA-xr8f-h2gw-9xh6 (Mitigation, Vendor Advisory)