Vulnerability DatabaseGHSA-g95c-wqvr-8c3j

GHSA-g95c-wqvr-8c3j: 
Better Auth vulnerability analysis and mitigation

Am I affected?

You are affected if all of these are true:

  • You use the admin plugin and the phone number plugin from better-auth.
  • A role other than the full admin role holds the user:update permission. You are not affected if only full administrators can update users.

Summary

The admin update-user endpoint requires a separate permission to change a user's email address, but not to change their phone number. A role allowed to edit user profiles could set another user's phone number and mark it as verified.

Impact

A user with a limited role that holds user:update can put their own phone number on another user's account and then sign in to that account with a phone OTP. This gives them the other user's session, including accounts with more privileges than their own.

Patches

Upgrade better-auth to 1.7.16, or to 1.8.0-beta.5 on the beta line. Changing phoneNumber or phoneNumberVerified through update-user now needs the new user:set-phone permission. The default admin role has it. If you use custom access control, add set-phone to your statements and grant it to the roles that should change phone numbers.

Workarounds

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

Technical details

/admin/update-user checked user:set-email before changing the email address, but passed phone fields through with only user:update. It now checks user:set-phone when either phone field is present.

Credit

Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-938BEJ5J.


Source: NVD

Related Better Auth vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-g95c-wqvr-8c3jMEDIUM6.8
  • Better Auth logoBetter Auth
  • better-auth
NoYesNov 03, 2026
GHSA-hwq2-v29r-p69rMEDIUM6.4
  • Better Auth logoBetter Auth
  • better-auth
NoYesNov 03, 2026
GHSA-c85h-5mrr-mgx4MEDIUM4.9
  • Better Auth logoBetter Auth
  • better-auth
NoYesNov 03, 2026
GHSA-fvxx-76fc-893xMEDIUM4.2
  • JavaScript logoJavaScript
  • @better-auth/passkey
NoYesNov 03, 2026
GHSA-gv75-j3v8-3crmLOW3.1
  • JavaScript logoJavaScript
  • @better-auth/passkey
NoYesNov 03, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management