


Perceptive Security
SOC/SIEM Consultancy

better-auth before 1.6.13 (and pre-release builds 1.7.0-beta.0 through 1.7.0-beta.3) fail to validate the scheme of redirect_uris registered via the deprecated …
Published:
31 July 2026 at 22:00:00
Alert date:
1 August 2026 at 14:10:40
Source:
nvd.nist.gov
Web Technologies, Identity & Access, Zero-Day Vulnerabilities
A stored XSS vulnerability exists in better-auth versions before 1.6.13 and pre-release builds 1.7.0-beta.0 through 1.7.0-beta.3. The flaw stems from a failure to validate the URI scheme of redirect_uris registered through the deprecated oidc-provider plugin and the mcp plugin. An attacker can register an OAuth client with a malicious 'javascript:' redirect_uri, which the authorization server returns unmodified in the consent response. If the consent page navigates the browser to the returned URI (e.g., via window.location.href), the attacker's JavaScript executes in the authorization-server origin. This enables session hijacking and full account takeover of victim users. The vulnerability affects deployments using the OIDC or MCP plugin features of better-auth. A fix is available in version 1.6.13 and later stable releases.
Technical details
Mitigation steps:
Affected products:
better-auth
Related links:
https://nvd.nist.gov/vuln/detail/CVE-2026-67333
https://github.com/better-auth/better-auth/security/advisories/GHSA-86j7-9j95-vpqj
https://www.vulncheck.com/advisories/better-auth-before-stored-xss-via-javascript-redirect-uri
Related CVE's:
Related threat actors:
IOC's:
This article was created with the assistance of AI technology by Perceptive.
