CVE-2026-67333
published medium CVSS 4.0 · 5.1better-auth before 1.6.13 Stored XSS via javascript redirect_uri
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| better-auth | — | better-auth0 to < 1.6.13 (affected · semver) · 1.6.13 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
| better-auth | — | better-auth1.7.0-beta.0 to < 1.7.0-beta.4 (affected · semver) · 1.7.0-beta.4 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.1 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.2 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| better-auth | better-auth | 0 to < 1.6.13 (affected · semver)1.6.13 (unaffected · semver)Default: unaffected | VulnCheck · cna |
| better-auth | better-auth | 1.7.0-beta.0 to < 1.7.0-beta.4 (affected · semver)1.7.0-beta.4 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
2- GitHub Security Advisory (GHSA-86j7-9j95-vpqj) https://github.com/better-auth/better-auth/security/advisories/GHSA-86j7-9j95-vpqj
- VulnCheck Advisory: better-auth before 1.6.13 Stored XSS via javascript redirect_uri https://www.vulncheck.com/advisories/better-auth-before-stored-xss-via-javascript-redirect-uri
Provider assertions
2VulnCheck · cna
better-auth before 1.6.13 Stored XSS via javascript redirect_uri
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 1fc0a9cf46a4b84431639bcc2bdcca9fab25bf65b1c375ea5528f4a88433a08b
- Ingested
- 23 Sep 2026, 09:27:16 UTC
- Source record
- Official CVE record