Skip to main content

better-auth SSO EUVDEUVD-2026-66214

| CVE-2026-80192 HIGH
Improper Authentication (CWE-287)
2026-08-25 VulnCheck GHSA-xfj7-7fp8-rhvp
8.6
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker authenticates as org owner
  2. Delivery
    Registers SSO provider claiming unowned target domain
  3. Exploit
    Victim user authenticates via SSO
  4. Execution
    System auto-assigns victim to attacker-controlled org
  5. Impact
    Attacker 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

sso 1.7.0-beta.0 <1.7.0-rc.5
sso 1.4.9 <1.6.27
sso 1.4.8-beta.1 <1.4.8

Affected Packages

euvd sso fix: 1.4.8, 1.6.27, 1.7.0-rc.5

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

Vendor (VulnCheck) PRIMARY 8.6 HIGH
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
vuln.today AI 9.6 CRITICAL

Network-accessible with org-owner role (PR:L); scope changes because victim users' accounts in downstream components are compromised, warranting S:C.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Aug 29, 2026 - 14:16 EUVD
CVE Published
Aug 25, 2026 - 23:19 cve.org
HIGH 8.6

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.3%
Top 81% exploitable
Prevalence
Low
newer auth library, limited confirmed enterprise production footprint
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

43
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +43
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy