Vulnerability  ·  2026-08-03

better-auth OIDC/MCP Plugin — Unvalidated redirect_uri Scheme Enables javascript: URI Hijack

VulnerabilityMedium impactGlobalCVE-2026-67333
Published August 1, 2026 (CVSS 7.2/High). A companion flaw to CVE-2026-67336: better-auth's deprecated oidc-provider and mcp plugins do not restrict redirect_uri schemes, permitting non-HTTP(S) schemes like `javascript:` to be registered as valid OAuth redirect targets.
Because the mcp plugin wraps the same vulnerable OIDC provider, this affects any MCP deployment relying on better-auth for OAuth-based tool/resource authorization — an attacker-controlled redirect can hijack authorization codes or tokens intended for legitimate MCP clients.
The OIDC provider and mcp plugin (which wraps the same provider) fail to validate the URI scheme of registered `redirect_uris`, allowing an attacker to register an OAuth client with a `javascript:` redirect URI, enabling token/code theft via script execution in the authorization redirect flow.
better-auth < 1.6.13 and pre-release 1.7.0-beta.0 through 1.7.0-beta.3 (deprecated oidc-provider plugin and mcp plugin)
Upgrade better-auth to 1.6.13 or later (avoid the affected 1.7.0-beta.0–beta.3 range). See GHSA-86j7-9j95-vpqj.
NVD - CVE-2026-67333GitHub Security Advisory GHSA-86j7-9j95-vpqj
See this in the live feed Explore related AI security and governance findings — updated every morning.
Open the feed →