top of page
perceptive_background_267k.jpg

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

Click to open the original link from this advisory

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:

Related CVE's:

Related threat actors:

IOC's:

This article was created with the assistance of AI technology by Perceptive.

© 2025 by Perceptive Security. All rights reserved.

email: info@perceptivesecurity.com

Disclaimer: Deze website toont informatie afkomstig van externe bronnen. Perceptive aanvaardt geen verantwoordelijkheid voor de inhoud, juistheid of volledigheid van deze informatie.

bottom of page