# CVE-2026-114607: Better Auth authentication bypass in Magic Link and OAuth

Source: https://junglewise.ai/threats/cve-2026-114607-better-auth-is-an-authentication-and-authorization-library-for  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-22. Updated: 2026-10-22  
License: CC BY 4.0 with a link back

CVE-2026-114607 · Severity: critical · CVSS 9.1 · Published 2026-10-22

Better Auth is a TypeScript authentication library used to verify user identities and manage login sessions. A critical flaw allows attackers to bypass authentication by exploiting how Magic Links and OAuth state values are stored, enabling account takeover or creation of fake verified accounts without controlling a user's email. The vulnerability affects versions 1.4.0-beta.18 through 1.7.6 when certain configurations are enabled.

Technologies: [Better-Auth](https://junglewise.ai/threats/technologies/better-auth-better-auth), [better-auth (npm)](https://junglewise.ai/threats/technologies/better-auth). Vendors: [Better-Auth](https://junglewise.ai/threats/vendors/better-auth), [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2026-114607 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-114607 being exploited in the wild.

**How severe is CVE-2026-114607?** Critical severity, with a CVSS score of 9.1, published 22 October 2026.

**Which products and versions are affected?** Better-Auth 1.4.0-beta.18 through 1.7.6; better-auth (npm) >= 1.4.0-beta.18, < 1.7.7.

**Is there a fix for CVE-2026-114607?** Yes: fixed in 1.7.7. Until then: Upgrade all Better Auth nodes handling the same cookie-backed OAuth or SAML relay-state flow together and all OAuth Proxy participants in the same cutover, including production and preview or development deployments. Restart all OAuth sign-in, account-linking, and cookie-backed SAML sign-in flows initiated before the upgrade. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-114607 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-114607?** Check whether you run Better-Auth or better-auth (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in 1.7.7

Upgrade all Better Auth nodes handling the same cookie-backed OAuth or SAML relay-state flow together and all OAuth Proxy participants in the same cutover, including production and preview or development deployments. Restart all OAuth sign-in, account-linking, and cookie-backed SAML sign-in flows initiated before the upgrade.

## Technical details

The vulnerability stems from insufficient isolation between Magic Link verification records and OAuth state storage when specific configurations are combined: Magic Link with storeToken set to plain or hashed, global verification.storeIdentifier set to hashed, social/Generic OAuth providers enabled, and account.storeStateStrategy set to database. An attacker can initiate an OAuth sign-in for a known email address and redeem the returned state value through Magic Link verification without controlling the mailbox or completing the OAuth callback, gaining a normal session or creating an incorrectly email-verified account.

## Affected products

- Better Auth Better Auth 1.4.0-beta.18 through 1.7.6

## Identifiers

- CVE-2026-114607
- GHSA-965c-763c-88jm

## Timeline

- 2026-10-22: disclosed
- 2026-09-30: patched

## References

- [https://github.com/better-auth/better-auth/commit/ac54bfd67821a7607533af2059858b12bc54e26a](https://github.com/better-auth/better-auth/commit/ac54bfd67821a7607533af2059858b12bc54e26a)
- [https://github.com/better-auth/better-auth/pull/11494](https://github.com/better-auth/better-auth/pull/11494)

## Related threats

- [Better Auth OAuth Proxy authentication bypass](https://junglewise.ai/threats/cve-2026-110864-better-auth-from-1-5-0-beta-12-before-1-7-7-contains-an)
- [Better Auth authentication bypass via OAuth state reuse](https://junglewise.ai/threats/cve-2026-110862-better-auth-from-1-4-0-beta-18-before-1-7-7-contains-an)
- [@better-auth/drizzle-adapter: Concurrent requests can exceed rate limits on PostgreSQL](https://junglewise.ai/threats/cve-2026-110861-better-auth-better-auth-drizzle-adapter-and-better-auth-from-1-6)
- [better-auth device authorization UI misrepresentation in deviceAuthorization plugin](https://junglewise.ai/threats/cve-2026-109346-better-auth-from-1-3-8-beta-3-before-1-7-0-rc-3-contains-a-ui)
- [better-auth external request basePath modification DoS](https://junglewise.ai/threats/better-auth-external-request-basepath-modification-dos-644481c4)
