Authentication Bypass in Better Auth for TypeScript
CVE-2026-53515
7.1HIGH
What is CVE-2026-53515?
The Better Auth library for TypeScript contains a significant security flaw in its @better-auth/sso plugin, allowing any member of an organization to attach new SSO providers via the POST /sso/register endpoint. This occurs because the implementation only checks for an existing membership row, neglecting to assert whether the user holds an owner or admin role. Consequently, this oversight enables attackers to register their own OIDC or SAML providers, which can lead to unauthorized provisioning through the /sso/callback/{providerId} endpoint. The issue has been addressed in version 1.6.11.
Affected Version(s)
better-auth >= 1.2.10, < 1.6.11
sso >= 1.2.10, < 1.6.11
