Live threats

All CVEs / better-auth

CVE-2026-67333better-auth

Medium 5.1

Priority
31
CVSS 4.0
5.1
EPSS
—
Auth required
Yes
Published
Aug 1, 2026
Updated
Sep 8, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
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

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for better-auth.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm better-auth < 1.6.13 1.6.13 npm install better-auth@1.6.13
npm better-auth ≥ 1.7.0-beta.0 < 1.7.0-beta.4 1.7.0-beta.4 npm install better-auth@1.7.0-beta.4

Per OSV / GitHub Advisories (GHSA-86j7-9j95-vpqj). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.