Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker authenticates as org owner
-
DeliveryRegisters SSO provider claiming unowned target domain
-
ExploitVictim user authenticates via SSO
-
ExecutionSystem auto-assigns victim to attacker-controlled org
-
ImpactAttacker accesses victim's organizational data and resources
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication mechanism validation
MITRE ATT&CK
2 techniques across 2 tactics: Defense Evasion, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Path 1 (unverified-domain org-assignment): domain verification must be explicitly disabled in the SSO plugin configuration; both the SSO plugin and the organization plugin must be active; the attacker must hold an authenticated organization owner or administrator role. Exploitation is passive - users with email domains matching the claimed provider domain are auto-assigned upon their next SSO authentication, requiring no direct interaction from the victim. Path 2 (race condition plus account linking): domain verification must be enabled; implicit account linking must be active in the SSO plugin; the attacker must hold an authenticated organization owner role and be able to issue precisely timed concurrent API requests to the verify-domain and update-provider endpoints. Exploitation is further limited to user accounts whose email domains are not already locked to a separately verified provider. Both paths require the SSO plugin to be installed and configured; the org-assignment path additionally requires the organization plugin. |
| Impact | The vendor-assigned CVSS 4.0 score of 8.6 (High) is consistent with both attack paths: network-accessible exploitation requiring only an authenticated org-owner role (PR:L), with high confidentiality and integrity impact and no availability dimension. The simpler path - exploiting disabled domain verification - carries low practical complexity and is viable without specialized tooling. The race condition path requires concurrent API requests with precise timing, raising real-world complexity, but remains feasible for a motivated attacker who controls their environment. No EPSS data was supplied and no CISA KEV listing or public POC exists at time of analysis, which reduces immediate mass-exploitation risk; however, the account-takeover potential via the race condition path means that any organization running implicit account linking with this plugin should treat this as an urgent patch rather than a deferred maintenance item. The authenticated-only prerequisite (org-owner role) limits the attacker population relative to the raw CVSS score, and risk is further bounded by whether implicit account linking is active - defenders who have neither feature enabled face a substantially lower effective risk profile than the base score implies. |
| Exploit ScenarioDerived | An attacker holding an org-owner role registers an SSO provider claiming the domain 'victim-corp.com' without possessing DNS control over it; when a user with a @victim-corp.com address next authenticates, the system automatically assigns them to the attacker's organization with default member permissions, exposing internal organizational resources. Alternatively, the attacker initiates a legitimate domain verification flow for their own domain, then races a concurrent update-provider request to swap in a different target domain before the DNS proof is applied, and with implicit account linking active, the attacker's identity provider becomes linked to an existing user's account, enabling authentication impersonation. No public POC code has been identified, but the org-assignment path is mechanically straightforward given an authenticated org-owner role. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 26, 2026
Two domain-ownership authentication bypass flaws in @better-auth/sso allow authenticated organization owners to compromise user account integrity via unauthorized organization assignment or identity provider hijacking. Affected versions span the stable 1.6.x line (before 1.6.27), the 1.4.x maintenance line (before 1.4.8), and the 1.7 prerelease line (before 1.7.0-rc.5). An attacker holding an org-owner role can either silently recruit users with matching email domains into an attacker-controlled organization by registering an unverified SSO provider, or exploit a race condition between verification and update endpoints to substitute a different domain after DNS proof is collected - which, combined with implicit account linking, enables effective account takeover. No public exploit code or CISA KEV listing has been identified at time of analysis.
RemediationAI
Upgrade @better-auth/sso to version 1.6.27 or later (stable), 1.4.8 or later (1.4.x pins), or 1.7.0-rc.5 or later (prerelease). The authoritative vendor advisory is at https://github.com/better-auth/better-auth/security/advisories/GHSA-8c5h-wx78-2cfg. If immediate patching is not possible, the following compensating controls apply with noted trade-offs: explicitly enabling domain verification in the SSO plugin configuration eliminates the unverified-domain org-assignment path (path 1), but does not remediate the race condition path (path 2) - enabling verification is necessary but not sufficient as a standalone workaround. Restricting or rate-limiting concurrent API access to the verify-domain and update-provider endpoints reduces the exploitability of the TOCTOU race, at the cost of increased latency for legitimate domain operations. Disabling implicit account linking eliminates the escalation from unauthorized org assignment to account takeover on the race condition path, but may break SSO federation flows that depend on it. Auditing existing SSO provider registrations and organization membership for unexpected domains or anomalous additions can help detect prior exploitation.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The @better-auth/sso package implements Single Sign-On federation for the better-auth authentication framework (CPE: cpe:2.3:a:better-auth:sso). CWE-287 (Improper Authentication) manifests through two distinct control-flow failures. First, when domain verification is disabled, the automatic organization-assignment subsystem accepts SSO provider-supplied domain claims without independently verifying ownership, violating the principle that domain control must be cryptographically or DNS-proven before being acted upon. Second, when domain verification is enabled, a time-of-check/time-of-use (TOCTOU) race between the verify-domain and update-provider API endpoints allows a completed DNS proof to be applied to a different domain than the one that was actually verified. This proof-reuse flaw, combined with implicit account linking (where matching email domains automatically link incoming authentications to existing user accounts), elevates the impact from unauthorized org membership to full identity provider substitution on an existing account.
Know when Sso gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Network-accessible with org-owner role (PR:L); scope changes because victim users' accounts in downstream components are compromised, warranting S:C.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
@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.
Executive ViewAI
Organizations using @better-auth/sso library (versions 1.6 before 1.6.27, 1.4 before 1.4.8, or 1.7-rc before 1.7.0-rc.5) face user account takeover risk from privileged insiders, as organization administrators can exploit authentication bypass flaws to hijack user identities or transfer accounts to unauthorized organizations. This creates compliance and liability exposure if user accounts are compromised.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) restrict organization-owner role eligibility to essential personnel; require supervisory approval and documented business justification for role assignments; (2) mandate domain-ownership verification and management approval before any new SSO identity provider registration activates; (3) conduct immediate audit of all existing SSO providers to validate legitimate ownership and confirm authorized configurations; (4) implement comprehensive audit logging of all organization-owner actions including provider creation, modification, domain operations, and configuration changes; (5) monitor for anomalous patterns such as unverified provider registration, rapid domain additions, or unexpected administrative activity.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Multiple authentication bypass vulnerabilities in @better-auth/sso before version 1.6.21 enable low-privileged attackers
Privilege escalation in Better Auth SSO plugin (1.2.10 to <1.6.11) allows any authenticated organization member to regis
EUVD-2026-66214
GHSA-xfj7-7fp8-rhvp
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB