Intel

AIKIDO-2026-641910

@better-auth/sso is vulnerable to Improper Authentication

GHSA-8c5h-wx78-2cfgPublished Oct 19, 2026
October 19, 2026

81

CVE Score

High

Improper Authentication

Are you affected? Scan for Free

TL;DR

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.

How do I fix this?

Upgrade the @better-auth/sso library to the patch version.

Who does this affect?

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.

Versions

1.4.8 - 1.6.26

Fixed in 1.6.27

Background info

@better-auth/sso is vulnerable to Improper Authentication in versions 1.4.8 - 1.6.26.

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea