CVE-2026-67333 Details
Description
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 oidc-provider plugin and the mcp plugin (which wraps the same provider). An attacker can register an OAuth client with a javascript: redirect_uri, which the authorization server later returns unchanged in the consent response. If the deployment's consent page navigates the browser to the returned redirectURI (e.g. assigning it to window.location.href), the attacker's JavaScript executes in the authorization-server origin, exposing the victim's session and enabling account takeover.
A stored cross-site scripting vulnerability has been identified in Better Auth versions prior to 1.6.13 and in pre-release builds from 1.7.0-beta.0 to 1.7.0-beta.3. The issue arises in the deprecated oidc-provider plugin and the mcp plugin, which wraps the same provider. These versions fail to validate the scheme of redirect URIs registered through the affected plugins. An attacker can exploit this by registering an OAuth client with a JavaScript redirect URI. When the authorization server returns this URI in the consent response, it can be executed in the authorization server's origin, potentially exposing the victim's session and leading to account takeover.
Users can upgrade to Better Auth version 1.6.13 or 1.7.0-beta.4. If an upgrade is not possible, consent pages can be hardened to validate the scheme of redirect URIs before navigation, or users can migrate to the Better Auth OAuth Provider, which includes the necessary validation. Keeping dynamic client registration disabled and restricting client registration to authenticated users can also help mitigate the risk.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 1, 2026CISA-ADP
Assessed Aug 3, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| better-auth | < 1.6.13 (semver) >= 1.7.0-beta.0, < 1.7.0-beta.4 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 3, 2026 | CVE Modified | CISA-ADP |
| Aug 1, 2026 | New CVE Received | [email protected] |
Volerion