# CVE-2026-67333: better-auth before 1.6.13 Stored XSS via javascript redirect_uri

- Severity: Medium 5.1 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-07-07T20:55:28.000Z
- Modified: 2026-09-08T20:34:34.997Z
- Also known as: GHSA-86j7-9j95-vpqj
- Weaknesses: CWE-79, CWE-601
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- better-auth better-auth: before 1.6.13; from 1.7.0-beta.0 before 1.7.0-beta.4 (not affected: 1.6.13; 1.7.0-beta.4)
- better-auth (npm): before 1.6.13; from 1.7.0-beta.0 before 1.7.0-beta.4

## Every score

- VulnCheck: CVSS:4.0 5.1 Medium `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`
- VulnCheck: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N`

## References

- <https://github.com/better-auth/better-auth/security/advisories/GHSA-86j7-9j95-vpqj> (vendor-advisory, web)
- <https://www.vulncheck.com/advisories/better-auth-before-stored-xss-via-javascript-redirect-uri> (third-party-advisory)
- <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)

## Sources

- CVE List: [CVE-2026-67333](https://www.cve.org/CVERecord?id=CVE-2026-67333), CVE Terms of Use, modified 2026-08-03
- GitHub Advisory Database: [GHSA-86j7-9j95-vpqj](https://github.com/advisories/GHSA-86j7-9j95-vpqj), CC-BY-4.0, modified 2026-08-02
- NVD: [CVE-2026-67333](https://nvd.nist.gov/vuln/detail/CVE-2026-67333), Public domain, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-67333 · Whole record: https://cve.day/CVE-2026-67333.json · Rebuilt by cve.day 2026-11-25T22:59:30.793Z
