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.
Published: 2026-08-01
Score: 8.6 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

History

Fri, 14 Aug 2026 17:15:00 +0000

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

Mon, 03 Aug 2026 21:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Sun, 02 Aug 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Better-auth
Better-auth sso
Vendors & Products Better-auth
Better-auth sso

Sat, 01 Aug 2026 12:45:00 +0000

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'}


Subscriptions

Better-auth Better-auth\/sso Sso
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-14T16:50:54.741Z

Reserved: 2026-07-29T13:07:47.015Z

Link: CVE-2026-67328

cve-icon Vulnrichment

Updated: 2026-08-03T19:39:16.672Z

cve-icon NVD

Status : Received

Published: 2026-08-01T13:17:03.380

Modified: 2026-08-03T20:17:27.203

Link: CVE-2026-67328

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-02T20:31:35Z

Weaknesses
  • CWE-79

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