Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessRegister attacker-controlled account
-
DeliverySave victim's phone number while unverified
-
ExploitVictim performs valid phone OTP sign-in
-
ExecutionSession bound to attacker's account
-
ImpactVictim-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). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
More in Better Auth
View allBetter Auth is an authentication library for TypeScript. Rated high severity (CVSS 7.9), this vulnerability is remotely
Authorization bypass in the @better-auth/oauth-provider plugin for Better Auth (versions >= 1.4.8-beta.7 and < 1.6.5, pl
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
Authentication bypass in Better Auth before 1.6.11 stems from insecure cryptographic defaults in the legacy oidcProvider
Denial of service in Better Auth (npm) before 1.4.2 lets an unauthenticated remote attacker poison the router's base pat
Unauthenticated OAuth state values can be redeemed as Magic Link tokens in Better Auth 1.4.0-beta.18 through 1.7.6, lett
Authentication bypass in Better Auth's OAuth Proxy plugin (versions 1.5.0-beta.12 through 1.7.6) lets unauthenticated re
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
Path normalization bypass in Better Auth before v1.4.5 allows unauthenticated remote attackers to circumvent `disabledPa
Authorization bypass in @better-auth/scim versions 1.5.0 through 1.7.0-beta.3 allows any authenticated user to fully tak
Pre-account hijacking in better-auth (npm) allows a remote attacker to gain persistent, password-based access to any vic
The @better-auth/electron desktop sign-in plugin returns the server's full endpoint auth context - including the Better
EUVD-2026-132259
GHSA-cm25-j9rr-5r3r
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB