---
title: "better-auth 1.7.25: release notes, upgrades and advisories"
description: "better-auth 1.7.25: release notes, breaking changes by major version and 26 known advisories with their fix."
url: https://inlinr.com/packages/better-auth
lang: en
---

[Packages](https://inlinr.com/packages)

# better-auth

1.7.25 · 14 Nov 2026 MIT 21M / week [Repository](https://github.com/better-auth/better-auth) [Homepage](https://better-auth.com/) [npm](https://www.npmjs.com/package/better-auth) [Atom feed](https://inlinr.com/packages/feed/better-auth)

Your version 

## Where each line stands

[Plan an upgrade](https://inlinr.com/packages/better-auth/upgrade)

LineNewestSecurity

- 1.x 1.7.27 Safe from 1.7.7 Latest line
- 0.8.x and older 0.8.8 159 open advisories, worst critical  · last release Nov 2024, no longer updated [To 1.7.25](https://inlinr.com/packages/better-auth/upgrade/0.8.8-1.7.25)

## Latest releases

[All 247 releases](https://inlinr.com/packages/better-auth/releases)

1. ### [1.7.27](https://inlinr.com/packages/better-auth/releases/1.7.27 "Open this release") [](https://github.com/better-auth/better-auth/releases/tag/v1.7.27 "Read this release where it was published")  
20 Nov 2026

  - Fixed the phone number plugin returning a 500 instead of a 400 from `/update-user` when the request has no body
  - Fixed the username plugin returning a 500 on `/sign-up/email` and `/update-user` when the request has no body; it now returns the same 400 as without the plugin
  - Fixed `/sign-in/anonymous` to validate the request origin, returning a 403 for browser requests from origins outside `trustedOrigins`
2. ### [1.7.26](https://inlinr.com/packages/better-auth/releases/1.7.26 "Open this release") [](https://github.com/better-auth/better-auth/releases/tag/v1.7.26 "Read this release where it was published")  
18 Nov 2026

  - Added a `getAccountFields` option to social providers for storing custom values on the provider account at sign-in
  - Fixed expired verification values being returned to repeated lookups by deleting them when found
  - Fixed two-factor sign-in to reject an expired challenge before sending an OTP or counting a failed attempt
3. ### [1.7.25](https://inlinr.com/packages/better-auth/releases/1.7.25 "Open this release") [](https://github.com/better-auth/better-auth/releases/tag/v1.7.25 "Read this release where it was published")  
14 Nov 2026

  - 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

Dependency tracking

## Know when your own dependencies move

better-auth had 20 security advisories in the last 12 months. inlinr emails you the day one touches a project of yours, with the version that fixes it.

- Advisories reach you  
An email when a critical or high advisory affects a project, before the next install.
- Upgrades checked first  
Peer ranges, Node, ESM-only and types changes read before you bump.
- Only what matters  
Majors and breaking notes stay; patches and sibling bumps fold into one line.

[How dependency tracking works](https://inlinr.com/dependencies)

## Security

[All 26](https://inlinr.com/packages/better-auth/security)

- [better-auth: OAuth state can be used as a Magic Link to sign in as another user](https://inlinr.com/advisories/GHSA-965c-763c-88jm) Critical · fixed in 1.7.7
- [Better Auth: OAuth refresh-token replay via missing client authentication on oidc-provider and mcp plugins](https://inlinr.com/advisories/GHSA-pw9m-5jxm-xr6h) Critical · fixed in 1.6.11
- [Better Auth Has Two-Factor Authentication Bypass via Premature Session Caching (session.cookieCache)](https://inlinr.com/advisories/GHSA-xg6x-h9c9-2m83) Critical · fixed in 1.4.9

## Health

[Details](https://inlinr.com/packages/better-auth/security#signals)

- **Provenance**:
- **Publisher**:
- **Maintainers**:
- **Scorecard**:
- **Size**:

## Weekly downloads

## Works with

- [pg optional](https://inlinr.com/packages/pg)
- [vue optional](https://inlinr.com/packages/vue)
- [next optional](https://inlinr.com/packages/next)
- [react optional](https://inlinr.com/packages/react)
- [mysql2 optional](https://inlinr.com/packages/mysql2)
- [prisma optional](https://inlinr.com/packages/prisma)
- [svelte optional](https://inlinr.com/packages/svelte)
- [vitest optional](https://inlinr.com/packages/vitest)
- [mongodb optional](https://inlinr.com/packages/mongodb)
- [solid-js optional](https://inlinr.com/packages/solid-js)
- [react-dom optional](https://inlinr.com/packages/react-dom)
- [drizzle-kit optional](https://inlinr.com/packages/drizzle-kit)
- [drizzle-orm optional](https://inlinr.com/packages/drizzle-orm)
- [@sveltejs/kit optional](https://inlinr.com/packages/@sveltejs/kit)
- [@lynx-js/react optional](https://inlinr.com/packages/@lynx-js/react)
- [@prisma/client optional](https://inlinr.com/packages/@prisma/client)
- [@tanstack/react-start optional](https://inlinr.com/packages/@tanstack/react-start)
- [@tanstack/solid-start optional](https://inlinr.com/packages/@tanstack/solid-start)

## Same family

- [@better-auth/core 21M/wk](https://inlinr.com/packages/@better-auth/core)
- [@better-auth/telemetry 20.7M/wk](https://inlinr.com/packages/@better-auth/telemetry)
- [@better-auth/drizzle-adapter 20.3M/wk](https://inlinr.com/packages/@better-auth/drizzle-adapter)
- [@better-auth/memory-adapter 20.3M/wk](https://inlinr.com/packages/@better-auth/memory-adapter)
- [@better-auth/prisma-adapter 20.3M/wk](https://inlinr.com/packages/@better-auth/prisma-adapter)
- [@better-auth/mongo-adapter 20.2M/wk](https://inlinr.com/packages/@better-auth/mongo-adapter)
- [@better-auth/kysely-adapter 20.2M/wk](https://inlinr.com/packages/@better-auth/kysely-adapter)
- [@better-auth/oauth-provider 5.6M/wk](https://inlinr.com/packages/@better-auth/oauth-provider)

Registry facts last checked 18 Nov 2026\. Releases and advisories last read 24 Nov 2026.

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
