Packages

better-auth

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

Upgrading better-auth From 0.4.6 to 1.7.25

213 releases in betweennotes for 203

Other targets from 0.4.6Newest 0.x0.8.8Clears its 18 advisories1.6.13
  1. 0.4.6yours
  2. 7 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.7security
  26. 7 releases
  27. 1.7.15security
  28. 9 releases
  29. 1.7.25target
  30. 12 pre
38+
changes to make
18
advisories fixed
724+
new
1702+
fixes

Counted from 203 of 213 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.6

  • Fixed organization and API key metadata, and OAuth proxy sign-ins with a constructor field in additionalData, failing with a prototype pollution error

    1.7.15
  • 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

Release by release

  1. 1.7.25

    14 Nov 20261 fix
    • Fixed

      Fixed endpoint errors dropping Access-Control-Expose-Headers names set earlier by a hook or the endpoint, so cross-origin browser clients keep access to exposed headers

  2. 1.7.24

    14 Nov 20261 fix
    • Fixed

      Improved verification lookups to delete expired rows at most once a minute per server instance instead of on every lookup

  3. 1.7.23

    13 Nov 20261 fix
    • Fixed

      Fixed getTestInstance sharing one MongoDB database across test files, so parallel tests no longer delete each other's data

  4. 1.7.22

    12 Nov 202610 fixes
    • Fixed

      Fixed verification value consumption hanging on Cloudflare Workers when an earlier request for the same identifier ended mid-query

    • Fixed

      Fixed module-scope auth instances on Cloudflare Workers logging a schema validation error on every cold start by validating on first use

    • Fixed

      Fixed deferSessionRefresh refresh requests failing with a 415 error in Next.js and Nuxt

    • Fixed

      Fixed ReferenceError: window is not defined when a client session subscription is cleaned up after a test environment tears down its globals

  5. 1.7.21

    11 Nov 20269 fixes
    • Fixed

      Fixed plugin packages importing from the better-auth root, so bundlers no longer emit unused Kysely chunks when used with better-auth/minimal

    • Fixed

      core: Use ObjectId-shaped derived ids for Prisma ObjectId columns

    • Fixed

      Fixed the device approval page showing a valid code as invalid when the same signed-in user looked it up twice at once, such as under React Strict Mode

    • Fixed

      Fixed sign-ins with a genericOAuth provider using discoveryUrl and OAuth provider requests using resources hanging on Cloudflare Workers

  6. 1.7.20nothing new or fixed in the note

  7. 1.7.19

    10 Nov 202612 fixes
    • Fixed

      Fixed /admin/create-user leaving a user without a credential account when creating that account failed, such as a database hook throwing, which made retrying with the same email fail with USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL

    • Fixed

      Fixed /admin/create-user leaving a user without a credential account when the password was rejected, such as by the Have I Been Pwned plugin, which made retrying with the same email fail with USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL

    • Fixed

      Fixed client actions ignoring the HTTP method passed in second-argument fetch options, and attaching a request body when the method was a lowercase get or HEAD

    • Fixed

      Fixed plugin schema overrides (modelName and field names) leaking into other instances of the same plugin in one process

  8. 1.7.18

    5 Nov 20263 fixes
    • Fixed

      Fixed "revoke all sessions" with secondaryStorage and storeSessionInDatabase to also revoke sessions created while the revocation is running, except sessions created by a session.delete.after hook, which stay active

    • Fixed

      Fixed getTestInstance from better-auth/test to close its own Postgres connection pool and SQLite database when the test file finishes, while with Vitest's default sequence.hooks: "stack" your afterAll hooks still run first and can keep using the instance

    • Fixed

      Fixed getTestInstance with testWith: "mysql" hanging, and added a separate database per instance so several instances can run in one test file

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.