@better-auth/sso is vulnerable to Improper Authentication
81
CVE Score
High
Improper Authentication
The SSO plugin trusts a registered identity provider for the email domains it claims without confirming the registering user controls those domains. With domain verification disabled, an organization administrator's SSO provider gets matching-domain users auto-added with the default role. With domain verification enabled, a provider owner can update the provider during the verification check and have an unproven domain marked verified, linking an existing user's account to a provider they do not control. The fix requires proven domain ownership before a provider's claimed domain is trusted in either configuration.
Upgrade the @better-auth/sso library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you allow untrusted users to register, update, or verify SSO providers for your organization.
1.4.8 - 1.6.26
Fixed in 1.6.27@better-auth/sso is vulnerable to Improper Authentication in versions 1.4.8 - 1.6.26.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.