Packages

better-auth

1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed

Upgrading better-auth From 1.2.10 to 1.6.22

90 releases in betweennotes for 80

Other targets from 1.2.10Newest 1.x1.7.27Latest1.7.25
  1. 1.2.10yours
  2. 12 releases
  3. 1.3.10security
  4. 35 releases
  5. 1.4.11security
  6. 11 releases
  7. 1.5.0security
  8. 8 releases
  9. 1.6.2security
  10. 8 releases
  11. 1.6.11security
  12. 10 releases
  13. 1.6.22target
18+
changes to make
14
advisories fixed
386+
new
893+
fixes

Counted from 80 of 90 release notes. Advisories are counted from the advisory database, in full.

Start here

Before you upgrade

Tick each one off as you go
  • Breaking1.6.2
  • Breaking1.6.0
  • Breaking1.5.0
  • Breaking1.5.0
  • Breaking1.5.0
  • Breaking1.4.9
  • Breaking1.4.6
  • Breaking1.4.0
  • Breaking1.4.0
  • Breaking1.4.0

Security

Fixes 14 advisories affecting 1.2.10

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

    26 Jun 20262 fixes
    • Fixed

      Fixed unproven credentials not being revoked during magic link and email OTP sign-in

    • Fixed

      Fixed server-side OAuth requests to refuse redirect responses instead of following them

  2. 1.6.21

    26 Jun 202610 fixes
    • Fixed

      Fixed rate limits to be enforced before plugin request handlers run

    • Fixed

      Fixed admin permission changes and bans to take effect immediately, even when session cookie cache is enabled

    • Fixed

      Fixed deviceAuthorization() throwing a ZodError when called without a schema option under Zod v4

    • Fixed

      Fixed Google hosted-domain validation to apply consistently across all sign-in flows, including Google One Tap

  3. 1.6.20

    20 Jun 20263 fixes
    • Fixed

      Fixed account-linking logs to route through the configured logger

    • Fixed

      Fixed TypeScript inference errors by declaring inherited APIError properties

    • Fixed

      Fixed refresh cookie Max-Age to be capped at expiresIn

  4. 1.6.19

    16 Jun 20261 new · 9 fixes
    • New

      Added support for pre-binding device codes to a specific user in the device authorization plugin

    • Fixed

      Fixed headerless session checks

    • Fixed

      Fixed cookie cache fallback lookup

    • Fixed

      Fixed sendVerificationEmail errors not being surfaced to the client

  5. 1.6.18

    12 Jun 20262 new · 26 fixes
    • New

      Added internalAdapter.reserveVerificationValue to atomically record single-use markers, ensuring only one concurrent caller succeeds for replay-protected operations.

    • New

      Added the incrementOne adapter method and SecondaryStorage.increment for atomic counter updates, enabling strict rate-limit and usage-counter enforcement under concurrent load.

    • Fixed

      Fixed getCookieCache to return null for expired sessions instead of treating stale signed cookies as live sessions.

    • Fixed

      Fixed the delete-account confirmation link to prevent duplicate account deletions from concurrent callback requests.

  6. 1.6.17

    12 Jun 20263 new · 34 fixes
    • New

      Added an experimental oauthPopup plugin for popup-based OAuth sign-in, enabling sign-in inside cross-site iframes by completing the OAuth flow in a popup and passing the session token back via the bearer plugin

    • New

      Added internalAdapter.reserveVerificationValue for atomic single-use markers, ensuring exactly one concurrent caller succeeds and the rest see the marker as already taken, hardening replay protection across all verification flows. Database-backed storage is atomic; secondary-storage-only mode is best-effort.

    • New

      Added the optional incrementOne adapter method and SecondaryStorage.increment for atomic counter updates with conditional row guards, enabling strict enforcement of rate limits and usage counters. Adapters without native support fall back to a transaction-based approach.

    • Fixed

      Fixed getCookieCache to return null for an expired session instead of stale data, so middleware no longer treats an expired signed cookie as a live session.

  7. 1.6.16

    10 Jun 202614 fixes
    • Fixed

      Fixed SIWE verification to bind the signed message to server state before creating a session, preventing acceptance of signatures produced for a different message, earlier nonce, or unrelated domain.

    • Fixed

      Fixed PayPal ID token verification to validate the signature, issuer, audience, expiration, and nonce against PayPal's JWKS (RS256) or client secret (HS256), rejecting tokens that pass only structural checks.

    • Fixed

      Fixed Google hd (hosted domain) enforcement to verify the hd claim on the verified ID token and callback profile, preventing accounts outside the configured Workspace domain from signing in.

    • Fixed

      Fixed verifyAccessToken remote introspection to reject tokens with a missing or mismatching aud claim; set remoteVerify.allowMissingAudience: true to permit tokens where the introspection response legitimately omits aud.

  8. 1.6.15

    8 Jun 20264 fixes
    • Fixed

      Fixed the listSessions endpoint to properly enforce fresh-age session checks

    • Fixed

      Fixed unbanUser, setRole, and adminUpdateUser to return USER_NOT_FOUND instead of a generic 500 when the target user does not exist

    • Fixed

      Fixed Kysely migration constant import path to restore Kysely 0.28 and 0.29 compatibility

    • Fixed

      Improved cookie regex character ranges for more accurate cookie parsing

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.