Packages

better-auth

1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed

Upgrading better-auth From 1.3.9 to 1.7.0

92 releases in betweennotes for 84

Other targets from 1.3.9Newest 1.x1.7.27Latest1.7.25
  1. 1.3.9yours
  2. 1.3.10security
  3. 35 releases
  4. 1.4.11security
  5. 11 releases
  6. 1.5.0security
  7. 8 releases
  8. 1.6.2security
  9. 8 releases
  10. 1.6.11security
  11. 24 releases
  12. 1.7.0target
34+
changes to make
15
advisories fixed
312+
new
783+
fixes

Counted from 84 of 92 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 15 advisories affecting 1.3.9

  • 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
  • IPv6 address normalization and subnet support: For rate limiting and IP-based rules.

    1.5.0

Release by release

  1. 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

  2. 1.6.35

    19 Nov 20261 fix
    • Fixed

      Fixed refreshToken failing to store rotated tokens with adapters that reject the account id in update data, such as Convex

  3. 1.6.34

    1 Nov 20261 fix
    • Fixed

      Fixed ACCOUNT_NOT_FOUND when retrieving an access token after stateless OAuth sign-in links a new provider to an existing user

  4. 1.6.33nothing new or fixed in the note

  5. 1.6.32

    14 Sep 20261 fix
    • Fixed

      Improved diagnostics for Cloudflare Turnstile verification failures

  6. 1.6.31

    10 Sep 20261 new
    • New

      Added an option to disable OpenTelemetry span creation for individual auth instances

  7. 1.6.30

    17 Aug 20261 fix
    • Fixed

      Fixed concurrent cold-start requests from intermittently losing authentication or transaction context due to an async storage initialization race

  8. 1.6.29

    14 Aug 20261 fix
    • Fixed

      Improved deleteSessions performance by running deletes in parallel instead of sequentially

24 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.