Packages

better-auth

1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed

Upgrading better-auth From 1.3.26 to 1.7.0

75 releases in betweennotes for 72

Other targets from 1.3.26Newest 1.x1.7.27Latest1.7.25
  1. 1.3.26yours
  2. 19 releases
  3. 1.4.11security
  4. 11 releases
  5. 1.5.0security
  6. 8 releases
  7. 1.6.2security
  8. 8 releases
  9. 1.6.11security
  10. 24 releases
  11. 1.7.0target
32+
changes to make
14
advisories fixed
296+
new
733+
fixes

Counted from 72 of 75 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 14 advisories affecting 1.3.26

  • 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

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