Skip to content

CVE-2026-80192 better-auth SSO before 1.6.27 Domain Ownership Authentication Bypass

HighCVSS 8.6 EPSS 0.36%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
better-auth @better-auth/sso >= 1.4.8-beta.1, < 1.4.8; >= 1.4.9, < 1.6.27; >= 1.7.0-beta.0, < 1.7.0-rc.5 1.4.8, 1.6.27, 1.7.0-rc.5 Fixed

Affected products

ProductAffected versionsFixed in
better-auth @better-auth/sso >= 1.4.8-beta.1, < 1.4.8 1.4.8
better-auth @better-auth/sso >= 1.4.9, < 1.6.27 1.6.27
better-auth @better-auth/sso >= 1.7.0-beta.0, < 1.7.0-rc.5 1.7.0-rc.5

References