Packages

better-auth

1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed

Upgrading better-auth From 0.8.8 to 1.7.17

176 releases in betweennotes for 166

Other targets from 0.8.8Clears its 18 advisories1.6.13Latest1.7.25
  1. 0.8.8yours
  2. 1.0.0major
  3. 27 releases
  4. 1.1.6security
  5. 38 releases
  6. 1.3.10security
  7. 35 releases
  8. 1.4.11security
  9. 11 releases
  10. 1.5.0security
  11. 8 releases
  12. 1.6.2security
  13. 8 releases
  14. 1.6.11security
  15. 31 releases
  16. 1.7.7security
  17. 7 releases
  18. 1.7.15security
  19. 1 release
  20. 1.7.17target
  21. 12 pre
38+
changes to make
18
advisories fixed
641+
new
1484+
fixes

Counted from 166 of 176 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.8.8

  • 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.17

    4 Nov 20267 fixes
    • Fixed

      Fixed sessions created by a session.delete.after hook being treated as revoked during "revoke all sessions" when using secondaryStorage with storeSessionInDatabase

    • Fixed

      Fixed remembered sign-ins and sign-ups to refresh their session even if an earlier sign-in in the same browser used rememberMe: false

    • Fixed

      Fixed denying a device authorization request to reject a revoked session that is still in the cookie cache

    • Fixed

      Fixed IP wildcard trusted origins such as exp://192.168.*.*:* matching custom-scheme hosts with out-of-range or zero-padded octets

    • Fixed

      Fixed the phone number plugin storing an empty phoneNumber on sign-up and replacing a verified number when linking an account with an empty phone number

    • Fixed

      Fixed TOTP verification rejecting API key sessions so they can now finish two-factor enrollment

    • Fixed

      Fixed trusted devices being ignored when an app runs the two-factor sign-in step from its own hook on another sign-in path, such as email OTP

  2. 1.7.16

    3 Nov 202610 fixes
    • Fixed

      Fixed revoked sessions staying usable with secondary storage or the cookie cache. Bulk revocation now ends sessions missing from the cached list, and passkey registration, device authorization, two-factor, social account linking, and phone number changes check the session store

    • Fixed

      Fixed phone numbers being stored before they are verified. Sign-up and sign-in reject a phoneNumber in the request, social profiles no longer set an unverified number, and verification codes use their own namespace

    • Fixed

      Fixed /admin/update-user changing phone numbers without permission. It now requires user:set-phone, so add set-phone to custom access control statements

    • Fixed

      Fixed email OTP accepting more guesses than allowedAttempts under concurrent requests, and bound email change codes to the requesting account

  3. 1.7.15

    Security fix1 Nov 20267 fixes
    • Security

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

    • Fixed

      Improved BETTER_AUTH_SECRETS error messages to report the entry position instead of including the entry value

    • Fixed

      Fixed the admin update-user endpoint to reject data.id with a 400 error instead of attempting to change the user's primary key

    • Fixed

      Fixed the admin plugin to reject banned users when a session is created outside an endpoint, such as through internalAdapter.createSession

  4. 1.7.14

    26 Oct 20261 fix
    • Fixed

      Fixed two-factor TOTP to accept imported Base32 secrets stored as base32:<secret>

  5. 1.7.13

    25 Oct 20261 fix
    • Fixed

      Fixed type declarations so type-only exports are no longer listed as values, making a value import fail type checking instead of failing at runtime

  6. 1.7.12

    20 Oct 20263 fixes
    • Fixed

      Fixed the JWT plugin to verify JWTs and session cookie-cache JWTs with the stored key's algorithm instead of the token header's, and to warn when signing or verifying a JWT without an issuer or audience

    • Fixed

      Fixed OAuth callbacks completed through the OAuth proxy to run the same checks as the standard OAuth callback, including issuer and ID token nonce validation

    • Fixed

      Fixed auth.api.getSession() to keep the original database error as error.cause when the session lookup fails

  7. 1.7.11

    19 Oct 20262 fixes
    • Fixed

      Fixed repeated PostgreSQL migration diffs for int8 columns.

    • Fixed

      Fixed database-backed rate limiting returning an excessively large X-Retry-After value.

  8. 1.7.10

    15 Oct 20266 fixes
    • Fixed

      Fixed Captcha and OpenAPI plugin subpath imports and type resolution for better-auth/plugins/multi-session and better-auth/test.

    • Fixed

      Fixed Google One Tap sign-ins not recording google as the last login method.

    • Fixed

      Fixed imports from better-auth/plugins/one-tap failing with a not-exported error.

    • Fixed

      Fixed Google One Tap ignoring plugin-level autoSelect and cancelOnTapOutside settings.

    • Fixed

      Fixed Google One Tap sign-ins ignoring configured Google profile mapping and user info updates.

    • Fixed

      Fixed Google One Tap calling a prompt method unsupported by FedCM and retrying skipped prompts.

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