npm
CVE-2026-110864
better-auth: OAuth Proxy lets an attacker sign in as another user
- Severity
- High 7.4
- Published
- 27 Oct 2026
- Last changed
- 27 Oct 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 1.7.7
- Exploit chance
- 0.3% in the next 30 daysHigher than 21% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · Only under certain conditions · No login needed · No user action needed
- Attacker can
- Read data · Change data
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N- Also known as
- GHSA-r4xp-prcw-77qf
- Sources
- OSV.dev and GitHub
Description
The OAuth Proxy plugin trusts any user profile it can decrypt. In the affected setup, Better Auth encrypts sign-in state, including data the caller chose, with the same secret and hands it to anyone who starts a social sign-in. An attacker can use this to get a fake profile for another user's email address that the proxy accepts as real.
An attacker without an account who knows a user's verified email address can sign in as that user, with that user's permissions. They can read private data, change the account, and link a provider account of their choice to it. They need no provider sign-in and no action from the victim. No availability impact is established, and a reported open redirect was not confirmed.
Workarounds
Until you upgrade to the fixed release, apply one of these:
- Set one strong OAuth Proxy secret across every environment that takes part in the proxy flow, and keep it different from each environment's global Better Auth secret.
- Set account.storeStateStrategy: "database". This is already the default when a database or secondary storage is configured. If Magic Link is also enabled, switching can expose a separate cross-purpose verification-record path in affected releases.
Affected software
| Software | Affected versions |
|---|---|
better-authnpm · osv:npm:better-auth |
|
About better-auth
- Weekly downloads (npm)
- 21,121,233npm, 23 Nov 2026
Vulnerabilities in better-auth
- In our list
- 13
- Published in the last 12 months
- 13
- Critical, last 12 months
- 1
- High, last 12 months
- 7
- Known exploited
- 0
- CVE-2026-134311better-auth 1.3.0 before 1.7.16 Privilege Escalation via admin update-user Phone NumberHigh 7.6 21 Nov 2026
- CVE-2026-134312Better Auth 0.4.9 before 1.7.16 OAuth Unverified Email Account TakeoverHigh 7.4 21 Nov 2026
- CVE-2026-134313Better Auth before 1.7.16 and 1.8.0-beta.0 before 1.8.0-beta.5 Session Mix-Up via MySQL Serial IDsHigh 7.6 21 Nov 2026
- CVE-2026-134314better-auth from 1.3.7 before 1.7.16 Email OTP Race Condition and Authentication BypassMedium 6.3 21 Nov 2026
- CVE-2026-134315better-auth 1.4.0 before 1.7.16 Account Takeover via Email-Change LinksHigh 7.4 21 Nov 2026
- CVE-2026-134318better-auth 1.5.5 before 1.7.16 Privilege Escalation via Padded Invitation RoleMedium 6.9 21 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-110864
- GitHub Advisory Database https://github.com/advisories/GHSA-r4xp-prcw-77qf