Packages

better-auth

1.7.25 · 14 Nov 2026MIT20.8M / weekRepositoryHomepagenpmAtom feed

Upgrading better-auth From 0.4.5 to 1.7.7

196 releases in betweennotes for 186

Other targets from 0.4.5Newest 0.x0.8.8Clears its 18 advisories1.6.13Latest1.7.25
  1. 0.4.5yours
  2. 8 releases
  3. 0.5.0major
  4. 3 releases
  5. 0.6.0security
  6. 2 releases
  7. 0.7.0major
  8. 5 releases
  9. 0.8.0major
  10. 8 releases
  11. 1.0.0major
  12. 27 releases
  13. 1.1.6security
  14. 38 releases
  15. 1.3.10security
  16. 35 releases
  17. 1.4.11security
  18. 11 releases
  19. 1.5.0security
  20. 8 releases
  21. 1.6.2security
  22. 8 releases
  23. 1.6.11security
  24. 31 releases
  25. 1.7.7target
  26. 12 pre
38+
changes to make
18
advisories fixed
723+
new
1609+
fixes

Counted from 186 of 196 release notes. Advisories are counted from the advisory database, in full.

Start here

Before you upgrade

Tick each one off as you go
  • Breaking1.7.0
  • Breaking1.7.0
  • Breaking1.7.0
  • Breaking1.7.0
  • Breaking1.7.0
  • Breaking1.7.0
  • Breaking1.7.0
  • Breaking1.7.0
  • Breaking1.7.0
  • Breaking1.7.0

Security

Fixes 18 advisories affecting 0.4.5

  • Fixed a critical Magic Link account-takeover vulnerability.

    1.7.7
  • Fixed an invitation takeover vulnerability by enabling requireEmailVerificationOnInvitation by default and extending the verification gate to getInvitation and listUserInvitations

    1.6.11
  • Fixed OAuth state verification against cookie-stored nonce to prevent CSRF

    1.6.2
  • customSyntheticUser option: Support plugin fields in enumeration-protected responses (#8097).

    1.5.0
  • Prevent OTP reuse via race condition: Atomically invalidate OTPs on use.

    1.5.0
  • Prevent user enumeration: In email-otp when sign-up is disabled, and on sign-up with required email verification.

    1.5.0
  • Stricter default rate limits: For password reset and phone number verification endpoints.

    1.5.0
  • Separate CSRF and origin checks: More granular request validation.

    1.5.0
  • Prevent trial abuse: Check all user subscriptions before granting a free trial.

    1.5.0
  • SAML ACS error redirect hardening: Prevent open redirect in error flows.

    1.5.0

Release by release

  1. 1.7.7

    Security fix30 Sep 20265 fixes
    • Security

      Fixed a critical Magic Link account-takeover vulnerability.

    • Fixed

      Fixed ID-token sign-in ignoring the social provider’s disableSignUp setting.

    • Fixed

      Fixed OAuth Proxy accepting sign-in state as a provider profile. Upgrade all OAuth Proxy participants together; see the OAuth Proxy upgrade guidance.

    • Fixed

      Fixed CAPTCHA errors missing the JSON Content-Type header.

    • Fixed

      Fixed the active organization failing to refresh after sign-in when a session hook selects the initial organization.

    • Fixed

      Fixed rate-limit errors missing the JSON Content-Type header.

  2. 1.7.6

    24 Sep 20262 new · 6 fixes
    • New

      Added support for a bannedUserMessage function that receives the banned user, allowing sign-in errors to include details such as the ban reason.

    • New

      Added Vercel BotID as a captcha provider for protected authentication routes.

    • Fixed

      Passwords over maxPasswordLength are now rejected with PASSWORD_TOO_LONG before hashing or verification.

    • Fixed

      Fixed React hydration mismatches when session or plugin auth queries resolve before streamed components hydrate.

  3. 1.7.5

    14 Sep 20261 new · 4 fixes
    • New

      Added database.schemaName support for direct PostgreSQL connections.

    • Fixed

      Improved server-side logging for Cloudflare Turnstile verification failures.

    • Fixed

      Fixed PostgreSQL migrations incorrectly identifying tables and views across schemas.

    • Fixed

      Fixed MySQL index validation for existing string columns.

    • Fixed

      Removed the unused optional better-sqlite3 peer dependency to prevent installation conflicts.

  4. 1.7.4

    10 Sep 20263 new
    • New

      Added experimental.instrumentation.enabled to disable OpenTelemetry span creation per auth instance.

    • New

      Added support for additional session fields in testUtils auth helpers.

    • New

      Added Vitest 5 support to the testing utilities.

  5. 1.7.3

    Deprecation6 Sep 20264 new · 10 fixes
    • Deprecated

      Fixed callback hooks being skipped after proxied OAuth sign-ins and preserved server state when callback cookies are unavailable. The legacy /oauth-proxy-callback endpoint is deprecated and will be removed in the next minor release.

    • New

      Added Cloudflare as a built-in social provider with client-secret and PKCE support.

    • New

      Enabled schema validation during initialization by default, including in production, and rejected authentication requests on detected mismatches.

    • New

      Added isPasswordCompromised for checking passwords against Have I Been Pwned in custom server-side flows.

  6. 1.7.2

    26 Aug 20261 new · 9 fixes
    • New

      Added warnings for invalid signed session data in the cookie cache.

    • Fixed

      Fixed permanent user bans to clear expiration dates from previous temporary bans.

    • Fixed

      Fixed client types with more plugins being assignable to types declaring fewer plugins.

    • Fixed

      Fixed disabled MyISAM indexes from satisfying migration index checks.

  7. 1.7.1

    18 Aug 20261 new · 1 fix
    • New

      Added native database transaction support to test instances for PostgreSQL and MySQL.

    • Fixed

      Updated bundled dependencies (jose, nanostores, noble crypto packages, SimpleWebAuthn) to their latest compatible releases, with no changes required to existing projects.

  8. 1.7.0

    Migration needed18 Aug 202624 new · 15 fixes
    • Breaking

      Moved database joins out of experimental into the stable advanced.database.joins option

    • Breaking

      Scoped account identity by trusted issuer, keying accounts on (issuer, accountId)

    • Breaking

      Required captcha endpoint entries to match full auth paths, with wildcard support

    • Breaking

      Moved the MCP plugin into its own @better-auth/mcp package built on the OAuth provider

28 internal lines (docs, tests, tooling) left out.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.