CVE-2026-67333
MEDIUM 5.1CVSS 4.0Better Auth has stored XSS in the auth-server origin via javascript: redirect_uri in oidc-provider and mcp
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.
- Published
- 1 Aug 2026
- Last modified
- 8 Sep 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Deferred
- Weakness
- CWE-601CWE-79
- Also known as
- GHSA-86j7-9j95-vpqj
- Sources
- NVDJSONOSV GHSA-86j7-9j95-vpqjJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | MEDIUM 5.1 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 3.1 | HIGH 7.7 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | better-auth | < 1.6.13 | 1.6.13 |
| OSV | npm | better-auth | >= 1.7.0-beta.0, < 1.7.0-beta.4 | 1.7.0-beta.4 |
References
- https://github.com/better-auth/better-auth/security/advisories/GHSA-86j7-9j95-vpqj · WEB
- https://www.vulncheck.com/advisories/better-auth-before-stored-xss-via-javascript-redirect-uri
- https://github.com/better-auth/better-auth · PACKAGE
- https://github.com/better-auth/better-auth/releases/tag/v1.6.13 · WEB
- https://github.com/better-auth/better-auth/releases/tag/v1.7.0-beta.4 · WEB
History
- 25 Nov 2026 21:04 UTC · NVD: first stored (published 1 Aug 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 7 Jul 2026)