Packages

better-auth

1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed

Your version

1.6.11

12 May 2026Where it was published

1.7.27 is the newest release of 1.x.

In short

1 security1 new6 fixed

Security

Release note

The section about better-auth of a note shared by several packages.

better-auth

Bug Fixes

  • Added an error code to the change-email-disabled response to help clients identify the rejection reason

  • Fixed access-control role statement types so predefined organization roles expose only their configured permissions in TypeScript

  • Fixed the anonymous plugin to correctly call onLinkAccount when email verification triggers auto sign-in

  • Fixed device authorization to bind pending codes to the verifying session, preventing any authenticated user from approving or denying another user's device code

  • Fixed a race condition in the magic-link plugin that allowed concurrent requests to mint multiple sessions from the same single-use token

  • Fixed the oidc-provider and mcp plugins to require client_secret for confidential clients on refresh token grants and use constant-time secret comparison

  • Hardened oidc-provider and mcp plugins to follow OAuth 2.1: removed "none" from advertised signing algorithms, defaulted plain PKCE off, and rejected incomplete PKCE parameters

  • Security

    Fixed an invitation takeover vulnerability by enabling requireEmailVerificationOnInvitation by default and extending the verification gate to getInvitation and listUserInvitations

For detailed changes, see CHANGELOG

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.