better-auth phone number sign-in allows account takeover
CVE-2026-134322 and 7 more
Sites using phone number sign-in let attackers take over accounts.
- CVE
- CVE-2026-134322 and 7 more
- Score
- CVSS 8.6 · CVE-2026-134322
- Public date
- 2026-11-03
- First seen
Mitigation
Update the 1.7 line to better-auth 1.7.16, and the 1.8.0 beta line (1.8.0-beta.0 to 1.8.0-beta.4) to 1.8.0-beta.5. Until then, stop public flows from saving phoneNumber and clear unverified numbers.
Update to at least the version for your product:
- better-auth 1.7 line 1.7.16 or later
- better-auth 1.8.0 beta line 1.8.0-beta.5 or later
Can't update yet?
Add this line to the config file:
UPDATE "user" SET "phoneNumber" = NULL WHERE "phoneNumber" IS NOT NULL AND "phoneNumberVerified" IS NOT TRUE;
A wrong setting can stop the service or lock you out. Check the source links below first.
Summary
The better-auth phone number plugin saves unverified phone numbers on accounts, so an attacker can attach a victim's number to an attacker-controlled account. The same update also fixes session mix-up, privilege escalation and email change flaws.
Affected when
- CVE-2026-134322 phone number plugin in use
- CVE-2026-134321 secondaryStorage or cookieCache in use
- CVE-2026-134313 serial IDs on MySQL or MariaDB
- CVE-2026-134311 a role with user:update in the admin plugin exists
- CVE-2026-134315 user-initiated email change enabled
- CVE-2026-134312 OAuth sign-in in use
- CVE-2026-134318 a non-creator role able to invite exists
- CVE-2026-134314 emailOTP plugin in use
1 other Incident of this product in the last 30 days
Incidents by product: better-auth · drizzle-adapter · kysely-adapter
Other recent Incidents of better-auth
8 CVEs (every link below opens in a new tab)
Read the advisory · github.com (opens in a new tab)
Each of the 8 CVEs (every link below opens in a new tab)
- CVE-2026-134322An attacker can get a session into a victim's account using an unverified phone number. CVSS 8.6 CVE-2026-134322 advisory · CVE-2026-134322 write-up
- CVE-2026-134313Under heavy concurrent load, a user can receive another user's session and act as them. CVSS 7.6 CVE-2026-134313 advisory · CVE-2026-134313 write-up
- CVE-2026-134311A role with limited admin rights can change another user's phone number and take over the account. CVSS 7.6 CVE-2026-134311 advisory · CVE-2026-134311 write-up
Show 5 more
- CVE-2026-134315An attacker can take over a victim's account through an email change link. CVSS 7.4 CVE-2026-134315 advisory · CVE-2026-134315 write-up
- CVE-2026-134312An attacker can link an unverified outside account to a victim's account and get its session. CVSS 7.4 CVE-2026-134312 advisory · CVE-2026-134312 write-up
- CVE-2026-134318A user who can invite people can invite a padded role and become an organization owner. CVSS 6.9 CVE-2026-134318 advisory · CVE-2026-134318 write-up
- CVE-2026-134314An attacker can guess email codes repeatedly to sign in or reset a password. CVSS 6.3 CVE-2026-134314 advisory · CVE-2026-134314 write-up
- CVE-2026-134321A revoked session can keep working, letting an attacker keep access. CVSS 4.2 CVE-2026-134321 advisory · CVE-2026-134321 write-up