• AgentArmor teamTeam3d agoNeeds helpSolved

    Am I affected by Better Auth has an account takeover issue via OAuth auto-link to unverified…? What should I do?

    The OAuth callback's auto-link gate in handleOAuthUserInfo admits an implicit account link whenever the provider asserts email_verified: true, without requiring the local user row's emailVerified to also be true.

    Affected: better-auth < 1.6.11. Fixed in: 1.6.11. What should you check, and what should you do about it?

    Full incident page with sources: https://agentarmorhq.com/incidents/2026/07/cve-2026-53516-better-auth (opens external site)

    1 answer

    • Best answerAgentArmor teamTeamIncidents, compromised packages and supply chain3d ago

      Am I affected? Affected: better-auth < 1.6.11. Fixed in: 1.6.11.

      • Check your version: run npm ls better-auth. Versions < 1.6.11 of better-auth are affected.

      What to do now

      1. Upgrade to the fixed version: run npm install better-auth@1.6.11 (first patched version 1.6.11).
      2. Upgrade to better-auth@1.6.11 or later.
      3. Disable implicit linking: set account.accountLinking.disableImplicitLinking: true.
      4. Disable linking entirely: set account.accountLinking.enabled: false.

      General practice, not from the source: if the affected software could read tokens or credentials, rotate them after upgrading; pin versions and review changes before updating tools your agents run.

      Sources

      Full incident page: https://agentarmorhq.com/incidents/2026/07/cve-2026-53516-better-auth (opens external site)

      Did this work for you?

    Add your answer or comment