Skip to main content

better-auth CVE-2026-134322

| EUVDEUVD-2026-132259 HIGH
Improper Authentication (CWE-287)
2026-11-21 VulnCheck GHSA-cm25-j9rr-5r3r
8.6
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Register attacker-controlled account
  2. Delivery
    Save victim's phone number while unverified
  3. Exploit
    Victim performs valid phone OTP sign-in
  4. Execution
    Session bound to attacker's account
  5. Impact
    Victim-entered data exposed to attacker

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication mechanism validation
MITRE ATT&CK

2 techniques across 2 tactics: Defense Evasion, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The target application must use the better-auth phone number plugin (versions >= 0.4.12-beta.7 < 1.7.16, or >= 1.8.0-beta.0 < 1.8.0-beta.5) and expose a flow - sign-up, social-profile linking, or another path - that writes a phoneNumber onto an account before verification; phone OTP sign-in then selects the account by phoneNumber without checking phoneNumberVerified. The attacker needs only a self-registered account they control and knowledge of the victim's phone number. Exploitation is LIMITED by required victim interaction: the victim must themselves initiate and complete a valid phone-OTP sign-in (UI:P), and the attacker neither intercepts the OTP nor accesses the victim's own account - the payoff is only the data the victim subsequently enters into the attacker's session. The related shared-code denial-of-service condition additionally requires the absence of a custom verifyOTP function (affecting 1.2.6-beta.8 and later).

Impact

This is a genuine, logic-level authentication flaw (CWE-287) rather than an inflated high-CVSS issue, but it is not an emergency. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H) scores 8.6 (High): network-reachable, low complexity, no attacker privileges required, but it depends on victim interaction (UI:P) - the victim must voluntarily perform a phone-OTP sign-in for the attack to complete, which caps real-world reliability. The vuln.today priority is 'this_week', consistent with a serious-but-not-drop-everything issue. No EPSS score, no CISA KEV listing, and no proof-of-concept exploit code are present in the input (the two references are the GHSA advisory and the VulnCheck advisory, not working exploits), so there is no evidence of active or automated exploitation - this is 'no public exploit identified at time of analysis'. Signals are consistent rather than conflicting: a high severity driven by broad reachability and high impact, tempered by the required victim action and the absence of exploitation/EPSS/KEV signals. The practical limiter is that the attacker never gains the victim's own account and never intercepts the OTP; the harm is that the victim is silently logged into an attacker-controlled account and may then disclose data into it. Treat as a prioritized patch for anyone using the better-auth phone number plugin, but not a zero-day emergency.

Exploit ScenarioDerived

An attacker registers an account on an application using better-auth's phone number plugin and, through a sign-up or other flow that stores a phoneNumber before verification, attaches the victim's phone number to the attacker's own account. Later the victim performs a legitimate phone-OTP sign-in with a valid code sent to their real phone; because sign-in selects the account by phone number without requiring phoneNumberVerified, the victim receives a session for the attacker's account and any data they then enter becomes visible to the attacker. No public exploit code is identified; the attack requires the victim to initiate an OTP sign-in (UI:P).

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 21, 2026

Improper authentication in the better-auth phone number plugin (0.4.12-beta.7 through 1.7.15, and 1.8.0-beta.0 through 1.8.0-beta.4) lets an unauthenticated attacker save a victim's phone number on an account the attacker controls, because phone OTP sign-in resolves the account by phoneNumber without requiring phoneNumberVerified. When the victim later completes a genuine OTP sign-in with a code sent to their own phone, they receive a session for the attacker's account, exposing whatever data they then enter; the attacker neither intercepts the OTP nor gains access to the victim's own account, and exploitation requires the victim to initiate that sign-in (CVSS 4.0 UI:P). No public exploit code was identified at time of analysis, and the issue is not in CISA KEV; a related shared-code condition, present when no custom verifyOTP function is configured (1.2.6-beta.8 and later), allows cancellation of pending verification codes for a targeted user and results in denial of sign-in or recovery rather than account access.

RemediationAI

Vendor-released patch: upgrade better-auth to 1.7.16, or to 1.8.0-beta.5 on the beta line (advisory: https://github.com/better-auth/better-auth/security/advisories/GHSA-q747-mqgr-4gh7). Upgrading to 1.7.16 only stops new unverified numbers from being saved, so numbers already stored before the upgrade must be cleared manually; on PostgreSQL with default schema names the advisory gives UPDATE "user" SET "phoneNumber" = NULL WHERE "phoneNumber" IS NOT NULL AND "phoneNumberVerified" IS NOT TRUE; with the side effect that users who had not finished verification must add their number again. 1.8.0-beta.5 also requires proof of account ownership before a pending number is verified, which covers numbers saved before the upgrade. Until the upgrade is applied, stop public flows from saving phoneNumber before verification, for example by removing it from sign-up request bodies; a strict phoneNumberValidator reduces the shared-code cancellation problem but does not fix it, and the shared-code condition applies unless a custom verifyOTP function is configured.

Affected VersionsENISA

better-auth 1.8.0-beta.0 <1.8.0-beta.5
better-auth 0.4.12-beta.7 <1.7.16

Affected Packages

euvd better_auth fix: 1.7.16, 1.8.0-beta.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

better-auth's phone number plugin implements phone-based registration, OTP verification and phone OTP sign-in on top of the library's user and account records. The root cause is CWE-287 (improper authentication), compounded by CWE-345 (insufficient verification of data authenticity) and CWE-706 (use of an incorrectly resolved reference to the wrong object): sign-up, sign-in request bodies, createUser data and social-profile/account-linking paths could persist a phoneNumber before ownership was proven, and the phone OTP verification and sign-in routines then looked up the account by phoneNumber alone, never checking phoneNumberVerified. The OTP correctly proves control of the handset, but it was bound to whichever account record merely held that number, so the code and the account were resolved independently. Separately, phone verification codes were stored alongside codes issued by other flows without a phone-specific namespace, so a failed attempt on a wrong number could delete a pending code belonging to a different user; this shared-code component only applies from 1.2.6-beta.8 onward and only when a custom verifyOTP function is not supplied, and callers who can predict a pending code's record identifier can repeatedly cancel it. The fix in 1.7.16 rejects phoneNumber in sign-up and sign-in request bodies, drops unverified numbers supplied through createUser and social profiles (including during account linking), ignores unverified numbers written outside the plugin's verification path and the admin update route, moves verification codes to a phone-specific identifier, and makes phone password reset require a verified number when requireVerification is enabled; 1.8.0-beta.5 additionally requires proof of account ownership before a pending number is verified. The trigger is a logic/account-binding flaw in the plugin, not a memory-safety or cryptographic defect.

Know when Better Auth gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.6 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
vuln.today AI 8.1 HIGH

Attacker needs only a self-registered account (PR:N) and a network path (AV:N/AC:L), but the victim must perform an OTP sign-in (UI:R); confidentiality and integrity of victim-entered data are high, with no availability impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 21, 2026 - 18:02 EUVD
CVE Published
Nov 21, 2026 - 16:34 cve.org
HIGH 8.6

DescriptionCVE.org

better-auth 0.4.12-beta.7 before 1.7.16 and 1.8.0-beta.0 before 1.8.0-beta.5 contains an improper authentication vulnerability in the phone number plugin that lets sign-up and other flows save unverified phone numbers, which phone OTP sign-in then uses to select the account. Attackers can attach a victim's number to an attacker-controlled account so the victim's valid OTP sign-in yields a session for that account, exposing data the victim then enters.

Technical POC Analysis

Evidence basis: GHSA-q747-mqgr-4gh7 only.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A high-severity authentication flaw in the better-auth phone number plugin (versions 0.4.12-beta.7 through 1.8.0-beta.4) allows unauthenticated attackers to bind a victim's phone number to an account they control, causing victims who later authenticate via phone OTP to be silently logged into the attacker's account and potentially expose any data they enter. Any organization using this plugin for phone-based authentication or account recovery is affected, and because no patch is available, security leadership should treat this as a live account-integrity and data-disclosure risk requiring immediate mitigation. No public exploit code was identified at time of analysis and the issue is not in CISA KEV, but the mechanism is straightforward and self-service.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: disable the phone number plugin or phone OTP sign-in and recovery paths; require phoneNumberVerified before resolving accounts by phone number; implement a custom verifyOTP function to prevent pending-code cancellation; audit and remediate accounts with unverified phone numbers; enforce step-up authentication for affected accounts.

Threat Intelligence Overview

EPSS Score
0.4%
Top 62% exploitable
Prevalence
Medium
popular TypeScript auth library, but only phone-number-plugin deployments are affected
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

43
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +43
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2024-56734 HIGH POC
7.9 Dec 30

Better Auth is an authentication library for TypeScript. Rated high severity (CVSS 7.9), this vulnerability is remotely

CVE-2026-41427 HIGH POC
7.1 Apr 24

Authorization bypass in the @better-auth/oauth-provider plugin for Better Auth (versions >= 1.4.8-beta.7 and < 1.6.5, pl

CVE-2026-67330 CRITICAL
9.4 Aug 01

Privilege-escalating account takeover in the @better-auth/scim plugin (versions 1.4.0-beta.27 through 1.6.21 and 1.7.0-b

CVE-2026-67336 CRITICAL
9.4 Aug 01

Authentication bypass in Better Auth before 1.6.11 stems from insecure cryptographic defaults in the legacy oidcProvider

CVE-2025-71401 CRITICAL
9.3 Aug 02

Denial of service in Better Auth (npm) before 1.4.2 lets an unauthenticated remote attacker poison the router's base pat

CVE-2026-114607 CRITICAL
9.1 Oct 22

Unauthenticated OAuth state values can be redeemed as Magic Link tokens in Better Auth 1.4.0-beta.18 through 1.7.6, lett

CVE-2026-110864 CRITICAL
9.1 Oct 14

Authentication bypass in Better Auth's OAuth Proxy plugin (versions 1.5.0-beta.12 through 1.7.6) lets unauthenticated re

CVE-2026-121802 CRITICAL
9.1 Nov 04

Account takeover in @better-auth/expo (1.4.0-beta.6 through 1.7.15, and 1.8.0-beta.0 through 1.8.0-beta.4) lets an unaut

CVE-2025-71399 HIGH
8.8 Aug 02

Path normalization bypass in Better Auth before v1.4.5 allows unauthenticated remote attackers to circumvent `disabledPa

CVE-2026-67331 HIGH
8.7 Aug 01

Authorization bypass in @better-auth/scim versions 1.5.0 through 1.7.0-beta.3 allows any authenticated user to fully tak

CVE-2026-67327 HIGH
8.7 Aug 01

Pre-account hijacking in better-auth (npm) allows a remote attacker to gain persistent, password-based access to any vic

CVE-2026-134316 HIGH
8.6 Nov 21

The @better-auth/electron desktop sign-in plugin returns the server's full endpoint auth context - including the Better

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy