Better-auth
Better Auth: Privilege escalation via SSO provider registration: missing admin role check in @better-auth/sso
Better Auth is an authentication and authorization library for TypeScript. From 1.2.10 until 1.6.11, the @better-auth/sso plugin's POST /sso/register endpoint lets any organization member attach a new SSO provider to that organization because registerSSOProvider checks only for a membership row and does not require an owner or admin role, allowing attacker-controlled OIDC or SAML providers to drive /sso/callback/{providerId} organization provisioning. This issue is fixed in version 1.6.11.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1.2.10, < 1.6.11
Fixed in 1.6.11
- >= 1.2.10, < 1.6.11
Fixed in 1.6.11
Mitigation
Upgrade better-auth to 1.6.11 or later.
Upgrade sso to 1.6.11 or later.
References
- Vendor advisory github.com/better-auth/better-auth/security/ad…
- Patch github.com/better-auth/better-auth/pull/9220
- Patch github.com/better-auth/better-auth/commit/8676…
1 more
- Release notes github.com/better-auth/better-auth/releases/ta…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.