CVE-2026-41427
HIGH 7.1CVSS 4.0OAuth 2.1 Provider: Unprivileged users can register OAuth clients
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.
- Published
- 24 Apr 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-863
- Also known as
- GHSA-xr8f-h2gw-9xh6
- Sources
- NVDJSONOSV GHSA-xr8f-h2gw-9xh6JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 7.1 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:N/SC:L/SI:H/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | better-auth | better-auth/oauth-providercpe:2.3:a:better-auth:better-auth\/oauth-provider:*:*:*:*:*:node.js:*:* |
>= 1.4.9, < 1.6.5 | 1.6.5 |
| NVD | better-auth | better-auth/oauth-providercpe:2.3:a:better-auth:better-auth\/oauth-provider:1.4.8:-:*:*:*:node.js:*:* |
= 1.4.8 | |
| NVD | better-auth | better-auth/oauth-providercpe:2.3:a:better-auth:better-auth\/oauth-provider:1.4.8:beta7:*:*:*:node.js:*:* |
= 1.4.8 | |
| NVD | better-auth | better-auth/oauth-providercpe:2.3:a:better-auth:better-auth\/oauth-provider:1.7.0:beta0:*:*:*:node.js:*:* |
= 1.7.0 | |
| OSV | npm | @better-auth/oauth-provider | >= 1.4.8-beta.7, < 1.6.5 | 1.6.5 |
| OSV | npm | @better-auth/oauth-provider | >= 1.7.0-beta.0, <= 1.7.0-beta.1 |
References
- https://github.com/better-auth/better-auth/security/advisories/GHSA-xr8f-h2gw-9xh6 · Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-41427 · ADVISORY
- https://github.com/better-auth/better-auth · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 24 Apr 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 16 Apr 2026)