Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

GHSA-g38m-r43w-p2q7: Better Auth has an account takeover issue via OAuth auto-link to unverified pre-registered email

0
High
Published: 07/07/2026 (07/07/2026, 20:55:13 UTC)
Source: GCVE Database
Product: better-auth

Description

A vulnerability in better-auth versions prior to 1.6.11 allows an attacker to perform account takeover via OAuth auto-linking to an unverified pre-registered email. The flaw arises because the OAuth callback implicitly links accounts based only on the OAuth provider's email verification claim, ignoring the local user's email verification status. This enables an attacker to pre-register a victim's email with an unverified password login and later have the victim's OAuth login linked to the attacker's account, granting persistent access. The issue bypasses the requireEmailVerification setting and affects all OAuth and SSO sign-in flows calling handleOAuthUserInfo. The vulnerability is fixed in better-auth 1.6.11 by requiring the local email to be verified before implicit linking.

CVSS v3.1

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L

Affected software

npmghsa
better-auth
Affected versions
<1.6.11

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/08/2026, 13:45:03 UTC

Technical Analysis

The vulnerability in better-auth before version 1.6.11 involves the OAuth callback's auto-linking mechanism in handleOAuthUserInfo, which implicitly links an OAuth identity to a local user account if the OAuth provider asserts email_verified: true, without checking the local user's emailVerified flag. An attacker can pre-register a victim's email with emailVerified: false and later cause the victim's OAuth login to link to the attacker's account, effectively hijacking the victim's account by combining password and OAuth logins. The local emailVerified flag is then promoted to true post-link, defeating mitigations like requireEmailVerification: true. The fix adds a local-side check to reject implicit linking if the local email is unverified. Workarounds include disabling implicit linking or disabling account linking entirely, though these impact user experience. The vulnerability affects all OAuth and SSO providers integrated with better-auth that call handleOAuthUserInfo.

Potential Impact

This vulnerability enables account takeover through pre-account hijacking by allowing an attacker to bind a victim's OAuth identity to the attacker's pre-registered password login account, granting persistent access. It bypasses the requireEmailVerification setting by promoting the attacker's unverified email to verified after linking. The issue affects all OAuth and SSO sign-in flows using better-auth's handleOAuthUserInfo, potentially compromising user accounts and authentication integrity.

Mitigation Recommendations

A fix is available in better-auth version 1.6.11 and later, which adds a local email verification check before implicit OAuth account linking. Users should upgrade to version 1.6.11 or later. If immediate upgrade is not possible, developers can mitigate by disabling implicit linking via account.accountLinking.disableImplicitLinking: true, forcing explicit linking through authenticated endpoints, or by disabling account linking entirely with account.accountLinking.enabled: false, though this breaks multi-login-method UX. The requireEmailVerification setting alone does not mitigate this vulnerability.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-g38m-r43w-p2q7
Osv Schema Version
1.4.0
Aliases
["CVE-2026-53516"]
Ecosystems
["npm"]
Database Specific Severity
HIGH
Cvss Version
3.1

Threat ID: 6a4e4ef7c9d9e3dbe328cc17

Added to database: 07/08/2026, 13:21:59 UTC

Last enriched: 07/08/2026, 13:45:03 UTC

Last updated: 07/08/2026, 13:45:03 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses