CVE-2026-67328

@better-auth/sso before 1.6.21 Account Takeover via SSO

Published Aug 1, 2026 CVSS 4.0 · 8.6 High EPSS < 1% KEV · Not listed
Description
@better-auth/sso versions before 1.6.21 contain multiple authentication bypass vulnerabilities in SSO provider handling that allow attackers to sign in as arbitrary users. Attackers can exploit domain verification parsing mismatches, orphaned provider accounts, unbound SAML assertions, or reflected XSS on logout endpoints to gain unauthorized session access and account takeover.

Analysis

AI-generated

Technical impact

The vulnerability allows attackers to bypass authentication when using @better-auth/sso with a SAML identity provider, enabling them to sign in as any user. The flaws arise from mismatched domain verification parsing, orphaned provider accounts, unbound SAML assertions, and reflected XSS on logout endpoints. An attacker who can trigger these conditions can obtain an unauthorized session that grants full account access, potentially exposing sensitive data and permitting further malicious actions. The weakness is classified as CWE‑79, a web input validation failure that leads to authentication bypass.

Affected Systems

All installations of the @better-auth/sso library with a version earlier than 1.6.21 are impacted. The product is published under the "better-auth" vendor, with the affected component named "sso". No vendor‑specific version list beyond the <1.6.21 cutoff is provided, so any prior release should be considered vulnerable.

Risk and Exploitability

The CVSS score of 8.6 indicates high severity. EPSS data is not available, and the vulnerability is not listed in CISA’s KEV catalog, but the expertise required to abuse the flaws suggests a remote web‑based attack via the SSO integration point. Exploitation would require a malicious identity provider or an attacker capable of forging SAML assertions against the victim’s configured SSO flow; such conditions make the attack realistic in scenarios where third‑party identity providers are used without strict validation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to @better-auth/sso version 1.6.21 or newer to remove the authentication bypass flaws
  • Configure SSO providers to enforce strict domain verification and reject orphaned provider accounts
  • Validate and sign all SAML assertions before acceptance, ensuring they cannot be unbound or forged
  • Implement defensive headers and input sanitization on the logout endpoint to mitigate reflected XSS

Generated by OpenCVE AI on August 2, 2026 at 03:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Better-auth better-auth\/sso
CPEs cpe:2.3:a:better-auth:better-auth\/sso:*:*:*:*:*:node.js:*:*
Vendors & Products Better-auth better-auth\/sso
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Better-auth
Better-auth sso
Vendors & Products Better-auth
Better-auth sso
Type Values Removed Values Added
Description @better-auth/sso versions before 1.6.21 contain multiple authentication bypass vulnerabilities in SSO provider handling that allow attackers to sign in as arbitrary users. Attackers can exploit domain verification parsing mismatches, orphaned provider accounts, unbound SAML assertions, or reflected XSS on logout endpoints to gain unauthorized session access and account takeover.
Title @better-auth/sso before 1.6.21 Account Takeover via SSO
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N'}

cvssV4_0

{'score': 8.6, 'vector': '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'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 8, 2026, 3:24 PM
Reserved
Jul 29, 2026, 1:07 PM
Status
Deferred
Published
Aug 1, 2026, 1:17 PM
Modified
Oct 23, 2026, 11:10 PM