# CVE-2026-53516: Better Auth improper authentication in OAuth account linking

Source: https://junglewise.ai/threats/cve-2026-53516-better-auth-improper-authentication-in-oauth-account-linking  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-15. Updated: 2026-07-15  
License: CC BY 4.0 with a link back

CVE-2026-53516 · Severity: high · CVSS 8.3 · Published 2026-07-15

Better Auth is a security library used by developers to handle user logins and permissions in TypeScript applications. A flaw in how it links social media accounts (like Google or GitHub) to local user accounts allows an attacker to take over a victim's account. By pre-registering a victim's email address, an attacker can force the victim's legitimate social login to link to the attacker's account, granting the attacker full access to the victim's data and identity within the application.

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

## Quick answers

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

**How severe is CVE-2026-53516?** High severity, with a CVSS score of 8.3, published 15 July 2026.

**Which products and versions are affected?** better-auth (npm) < 1.6.11, SEMVER:introduced=0,fixed=1.6.11.

**Is there a fix for CVE-2026-53516?** Yes. better-auth (npm): upgrade to 1.6.11 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

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

**Am I affected by CVE-2026-53516?** Check whether you run 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

- better-auth (npm): upgrade to 1.6.11 or later

  ```sh
  npm install better-auth@1.6.11
  ```


## Technical details

An authentication bypass and account takeover vulnerability exists in Better Auth's OAuth implementation. The `handleOAuthUserInfo` function, used by social providers and SSO, implicitly links incoming OAuth identities to existing local user rows based on email matching if the IdP asserts `email_verified: true`. However, it fails to check if the local user row itself is verified. An attacker can exploit this by pre-registering a victim's email via `/sign-up/email` (which creates an unverified row). When the victim later signs in via OAuth, the library links the victim's verified IdP identity to the attacker-controlled local row. This issue is fixed in version 1.6.11 by requiring `dbUser.user.emailVerified === true` for implicit linking.

## Affected products

- better-auth better-auth < 1.6.11

## Identifiers

- CVE-2026-53516
- GHSA-g38m-r43w-p2q7

## Timeline

- 2026-05-12: patched: Fix merged in PR #9578 and released in v1.6.11
- 2026-07-15: advisory: CVE-2026-53516 published via GitHub and NVD

## References

- [https://github.com/better-auth/better-auth/commit/da7e50beee849c59a2ed1ec6b3a38cc6ab9fb563](https://github.com/better-auth/better-auth/commit/da7e50beee849c59a2ed1ec6b3a38cc6ab9fb563)
- [https://github.com/better-auth/better-auth/pull/9578](https://github.com/better-auth/better-auth/pull/9578)
- [https://github.com/better-auth/better-auth/releases/tag/v1.6.11](https://github.com/better-auth/better-auth/releases/tag/v1.6.11)
- [https://github.com/better-auth/better-auth/security/advisories/GHSA-g38m-r43w-p2q7](https://github.com/better-auth/better-auth/security/advisories/GHSA-g38m-r43w-p2q7)

## Related threats

- [Better Auth authentication bypass in Magic Link and OAuth](https://junglewise.ai/threats/cve-2026-114607-better-auth-is-an-authentication-and-authorization-library-for)
- [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)
