Skip to content
CVE PROGRAM SOURCE RECORD8.6 High

CVE-2026-80192

better-auth SSO before 1.6.27 Domain Ownership Authentication Bypass

Description

@better-auth/sso before 1.6.27 (and before 1.4.8 in the 1.4.x line and before 1.7.0-rc.5 in the 1.7 prerelease line) contains two domain-ownership flaws. When domain verification is disabled, automatic organization assignment accepts unverified provider domains, allowing an authenticated organization owner/administrator to register an SSO provider for an arbitrary domain and have users with matching email domains added to the attacker's organization with default member permissions. When domain verification is enabled, a race condition between the verify-domain and update-provider endpoints can apply completed DNS proof to a different domain; combined with implicit account linking, this can link an attacker-controlled identity provider to an existing user account. Exploitation requires the SSO plugin (and, for the org-assignment path, the organization plugin) with the relevant configuration enabled.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

better-auth sso

Default version status: unaffected

  • 1.4.8-beta.1 to < 1.4.8affected
  • 1.4.8unaffected
pkg:npm/%40better-auth/sso

better-auth sso

Default version status: unaffected

  • 1.4.9 to < 1.6.27affected
  • 1.6.27unaffected
pkg:npm/%40better-auth/sso

better-auth sso

Default version status: unaffected

  • 1.7.0-beta.0 to < 1.7.0-rc.5affected
  • 1.7.0-rc.5unaffected
pkg:npm/%40better-auth/sso

References