Medium severity6.5NVD Advisory· Published Apr 24, 2026· Updated May 13, 2026
CVE-2026-41427
CVE-2026-41427
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.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
@better-auth/oauth-providernpm | >= 1.4.8-beta.7, < 1.6.5 | 1.6.5 |
@better-auth/oauth-providernpm | >= 1.7.0-beta.0, <= 1.7.0-beta.1 | — |
Affected products
4cpe:2.3:a:better-auth:better-auth\/oauth-provider:1.4.8:beta7:*:*:*:node.js:*:*+ 3 more
- cpe:2.3:a:better-auth:better-auth\/oauth-provider:1.4.8:beta7:*:*:*:node.js:*:*
- cpe:2.3:a:better-auth:better-auth\/oauth-provider:1.4.8:-:*:*:*:node.js:*:*
- cpe:2.3:a:better-auth:better-auth\/oauth-provider:1.7.0:beta0:*:*:*:node.js:*:*
- cpe:2.3:a:better-auth:better-auth\/oauth-provider:*:*:*:*:*:node.js:*:*range: >=1.4.9,<1.6.5
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
3- github.com/advisories/GHSA-xr8f-h2gw-9xh6ghsaADVISORY
- github.com/better-auth/better-auth/security/advisories/GHSA-xr8f-h2gw-9xh6nvdMitigationVendor AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2026-41427ghsaADVISORY
News mentions
0No linked articles in our index yet.