<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Sso - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/sso/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Sat, 01 Aug 2026 13:53:11 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/sso/feed.xml" rel="self" type="application/rss+xml"/><item><title>Authentication Bypass in @better-auth/sso</title><link>https://feed.craftedsignal.io/briefs/2026-08-better-auth-sso-bypass/</link><pubDate>Sat, 01 Aug 2026 13:53:11 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-08-better-auth-sso-bypass/</guid><description>Multiple authentication bypass vulnerabilities in @better-auth/sso allow attackers to perform account takeovers by exploiting flaws in SSO provider handling.</description><content:encoded><![CDATA[<p>The @better-auth/sso library is affected by multiple authentication bypass vulnerabilities in versions prior to 1.6.21 and specific beta versions (1.7.0-beta.0 through 1.7.0-beta.9). These flaws exist within the SSO provider handling logic, enabling attackers to sign in as arbitrary users. The vulnerabilities stem from disparate issues including domain verification parsing mismatches, improper handling of orphaned provider accounts, unbound SAML assertions, and reflected Cross-Site Scripting (XSS) on logout endpoints. By leveraging these weaknesses, an attacker can manipulate the authentication flow to gain unauthorized session access and execute full account takeover. Given the library's role in facilitating SSO integrations, these vulnerabilities pose a significant risk of unauthorized access to enterprise applications and user data.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>The attacker identifies an application utilizing a vulnerable version of @better-auth/sso.</li>
<li>The attacker initiates an authentication request to the SSO provider.</li>
<li>The attacker intercepts or modifies the response, exploiting domain verification parsing mismatches or injecting an unbound SAML assertion.</li>
<li>Alternatively, the attacker triggers a reflected XSS on the logout endpoint to steal session identifiers or manipulate session state.</li>
<li>The @better-auth/sso library incorrectly validates the forged or manipulated SSO assertion.</li>
<li>The application grants the attacker an authenticated session associated with the target user's identity.</li>
<li>The attacker accesses the application as the target user, achieving unauthorized access or complete account takeover.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation leads to unauthorized access to user accounts, enabling attackers to view private data, perform unauthorized actions on behalf of users, or elevate privileges if the account is an administrator. This impacts all applications and services that rely on the @better-auth/sso library for authentication, potentially exposing thousands of user sessions depending on the scale of the deployment.</p>
<h2 id="recommendation">Recommendation</h2>
<p>Prioritized actions for development and security teams:</p>
<ul>
<li>Upgrade @better-auth/sso to version 1.6.21 or 1.7.0-beta.10 immediately to remediate the vulnerabilities.</li>
<li>Review authentication logs for unusual session activity or authentication requests originating from unexpected SSO providers.</li>
<li>Audit custom authentication logic that integrates with @better-auth/sso to ensure strict validation of SAML assertions and SSO responses.</li>
<li>Implement monitoring for XSS patterns on logout endpoints as a compensatory measure while patching.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>authentication-bypass</category><category>sso</category><category>account-takeover</category><category>cve-2026-67328</category></item></channel></rss>