Incorrect Authorization Affecting better-auth package, versions <1.7.16>=1.8.0-beta.0 <1.8.0-beta.5


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.28% (23rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Incorrect Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-BETTERAUTH-23050745
  • published30 Nov 2026
  • disclosed21 Nov 2026
  • creditAnthropic's OSS Scanner

Introduced: 21 Nov 2026

NewCVE-2026-134311  (opens in a new tab)
CWE-863  (opens in a new tab)

How to fix?

Upgrade better-auth to version 1.7.16, 1.8.0-beta.5 or higher.

Overview

better-auth is a The most comprehensive authentication library for TypeScript.

Affected versions of this package are vulnerable to Incorrect Authorization via the admin plugin's /admin/update-user endpoint, which checks user:set-email before allowing email changes but applies no equivalent guard to phoneNumber and phoneNumberVerified fields, requiring only the broader user:update permission. An attacker holding a limited role with user:update can overwrite a higher-privileged account's phone number and mark it as verified, then sign in to that account via phone OTP to obtain its session.

Note: This is only exploitable when both the admin plugin and the phone number plugin are in use, and a role other than the full admin role holds the user:update permission.

Workaround

Remove user:update from roles that should not be able to change sign-in details, or reject phoneNumber and phoneNumberVerified fields in requests to /admin/update-user before they reach the library.

References

CVSS Base Scores

version 4.0
version 3.1