<?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>Better-Auth (1.7.0-Beta.0 Through 1.7.0-Beta.3) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/better-auth-1.7.0-beta.0-through-1.7.0-beta.3/</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:54:48 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/better-auth-1.7.0-beta.0-through-1.7.0-beta.3/feed.xml" rel="self" type="application/rss+xml"/><item><title>Cross-Site Scripting via Improper Redirect URI Validation in better-auth</title><link>https://feed.craftedsignal.io/briefs/2026-08-better-auth-redirect-uri-vuln/</link><pubDate>Sat, 01 Aug 2026 13:54:48 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-08-better-auth-redirect-uri-vuln/</guid><description>The better-auth library fails to validate redirect_uri schemes in its oidc-provider and mcp plugins, allowing attackers to inject javascript: URIs that lead to XSS and potential account takeover.</description><content:encoded><![CDATA[<p>The better-auth library, specifically versions prior to 1.6.13 and pre-release builds 1.7.0-beta.0 through 1.7.0-beta.3, contains a vulnerability in the oidc-provider and mcp plugins. These plugins fail to validate the scheme of redirect URIs during the registration of OAuth clients. An attacker can supply a malicious redirect URI using the 'javascript:' scheme. When an authorization server returns this URI to a consent page that improperly handles the navigation - typically by assigning the URI directly to window.location.href - the attacker's script executes within the context of the authorization server's origin. This enables the theft of session tokens and full account takeover for affected users. This vulnerability highlights the importance of strictly validating URI schemes before processing navigation in sensitive web application flows.</p>
<h2 id="impact">Impact</h2>
<p>Successful exploitation allows for arbitrary JavaScript execution in the origin of the authorization server. This facilitates session hijacking and account takeover of authenticated users interacting with the authorization flow. The scope includes any application utilizing the deprecated oidc-provider or mcp plugins within the affected version ranges.</p>
<h2 id="recommendation">Recommendation</h2>
<ol>
<li>Upgrade better-auth to version 1.6.13 or later to remediate CVE-2026-67333.</li>
<li>Audit all deployments using the oidc-provider or mcp plugins to ensure redirect URIs are strictly validated against a whitelist of approved schemes (e.g., http, https).</li>
<li>Review frontend code responsible for processing OAuth consent pages to ensure navigation logic does not execute values from untrusted user inputs (i.e., avoid dynamic window.location.href assignment with unsanitized URI parameters).</li>
</ol>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>xss</category><category>oauth</category><category>cve-2026-67333</category></item></channel></rss>