CVE-2026-41427 Better Auth OAuth 2.1 Provider: Unprivileged users can register OAuth clients
HighCVSS 7.1
EPSS 0.22%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
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.
Upgrade path
4 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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 | Fixed |
| better-authoauth-provider | = 1.4.8; = 1.4.8-beta7; = 1.7.0-beta0; >= 1.4.9, < 1.6.5 | 1.6.5 | Fixed |
| better-auth | = >= 1.4.8-beta.7, < 1.6.5; = >= 1.7.0-beta.0, <= 1.7.0-beta.1 | No fix listed | Versions listed |
| better-auth oauth-provider | = >= 1.4.8-beta.7, < 1.6.5; = >= 1.7.0-beta.0, <= 1.7.0-beta.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| better-auth | = >= 1.4.8-beta.7, < 1.6.5 | No fix listed |
| better-auth | = >= 1.7.0-beta.0, <= 1.7.0-beta.1 | No fix listed |
| better-auth oauth-provider | = >= 1.4.8-beta.7, < 1.6.5 | No fix listed |
| better-auth oauth-provider | = >= 1.7.0-beta.0, <= 1.7.0-beta.1 | No fix listed |
| better-auth oauth-provider(npm) | >= 1.4.8-beta.7, < 1.6.5 | 1.6.5 |
| better-auth oauth-provider(npm) | >= 1.7.0-beta.0, <= 1.7.0-beta.1 | No fix listed |
| better-authoauth-provider | >= 1.4.9, < 1.6.5 | 1.6.5 |
| better-authoauth-provider | = 1.4.8 | No fix listed |
| better-authoauth-provider | = 1.4.8-beta7 | No fix listed |
| better-authoauth-provider | = 1.7.0-beta0 | No fix listed |
References
- https://github.com/better-auth/better-auth/security/advisories/GHSA-xr8f-h2gw-9xh6 mitigation vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product