Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLearn target user's email address
-
DeliverySend crafted request to /expo-authorization-proxy with chosen state
-
ExploitServer signs attacker value with application secret
-
ExecutionForge email-change token using returned HMAC
-
ImpactChange victim's account email and take over account
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Origin validation
|
| Exploitation Conditions | Exploitable only when the server registers the expo() plugin from @better-auth/expo 1.4.0-beta.6 or later - no other setting is needed for the core signing flaw, and it works against that default plugin configuration. The attacker must know the victim's email address to drive the email-change account takeover (or the victim's user ID if the session cookie cache is additionally enabled, which expands impact to full session impersonation). The related wildcard-trusted-origins issue additionally requires a wildcard entry such as myapp://* or https://*.example.com in trustedOrigins. Limiting factors: deployments that do not use Expo social sign-in (and can remove the expo() server plugin) are not exposed, and exploitation requires prior knowledge of a valid target email address; no authentication and no user interaction are required (PR:N/UI:N confirmed by the vector). |
| Impact | This is a genuine high-priority issue, not a CVSS-inflated one. The CVSS 3.1 vector (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N, 9.1) is consistent with the vendor advisory: a public, network-reachable endpoint signs an attacker-supplied value with the application secret, enabling unauthenticated account takeover (PR:N, UI:N, AC:L all corroborated by the GHSA description). The vuln.today Decision label is act_now, aligning with the critical severity. No EPSS score was provided and the CVE is NOT listed in CISA KEV, so there is no evidence of active exploitation - the urgency here is driven by the act_now decision label, the detailed public advisory, and the low attack complexity rather than by observed in-the-wild activity. No verified PoC/exploit reference is present in the input (references are the GHSA advisory, CHANGELOG, and release tag), so exploitation is assessed as no public exploit identified at time of analysis, though the GHSA advisory publishes precise trigger mechanics (unvalidated 32-char state on /expo-authorization-proxy) that materially lower the bar to weaponization. One signal to verify: EPSS was not supplied, so probabilistic exploitation likelihood could not be cross-checked. The input Tag 'Information Disclosure' is inconsistent with the actual impact (signature forgery leading to account takeover, CWE-346/287/345/601) and appears mislabeled. |
| Exploit ScenarioDerived | An unauthenticated attacker who knows a target user's email address sends a crafted request to the public /expo-authorization-proxy endpoint with a chosen state value; the server signs that value with its application secret and returns it, giving the attacker a valid HMAC-SHA256 signature usable as a forged email-change token. The attacker then submits an email-change request as the victim and takes over the account with no user interaction. With the session cookie cache enabled, knowing only the user's ID lets the attacker forge a cache value and act as that user; no verified public exploit code is present in the input, though the advisory documents the exact trigger. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 04, 2026
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 unauthenticated attacker who knows a victim's email address change that account's email address and then sign in as the user, with no action required from the victim. The expo() server plugin exposes an authorization-proxy endpoint that signs a caller-supplied state value with the application secret without checking that the server issued it; because that HMAC-SHA256 signature is identical in form to HS256 JWT and session-cookie-cache signatures, a forged email-change token is accepted, and with the session cookie cache enabled an attacker knowing only a user ID can impersonate that user. Patches ship in @better-auth/expo 1.7.16 (and 1.8.0-beta.5 on the beta line) alongside better-auth of the same versions, and the vendor notes the application secret must be rotated after upgrading because pre-fix signatures stay valid until it changes; no public exploit is identified at time of analysis, and this carries an act_now priority rating.
RemediationAI
Upgrade both @better-auth/expo and better-auth to 1.7.16, or to 1.8.0-beta.5 on the 1.8 beta line (release notes: https://github.com/better-auth/better-auth/releases/tag/v1.7.16). After upgrading, rotate the application secret if the /expo-authorization-proxy endpoint was reachable, since signatures issued before the fix remain valid until the secret changes - expect existing sessions and signed tokens to be invalidated by the rotation. If Expo sign-in through an SSO identity provider fails after upgrading, add that identity provider's origin to trustedOrigins. If Expo social sign-in is not used, remove the expo() server plugin entirely to eliminate exposure; otherwise, as an interim control that blocks only the signing problem, block requests to /expo-authorization-proxy (under your auth base path) whose authorizationURL carries a state value that is not exactly 32 characters drawn from A-Z, a-z, 0-9, - and _ - legitimate Better Auth state values always have that form, so the filter has no effect on normal traffic but also leaves the open-redirect and wildcard-origin issues unaddressed. Also audit trustedOrigins for wildcard entries such as myapp://* or https://*.example.com and replace them with explicit origins.
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
The flaw is CWE-346 (origin validation error) in the authorization-proxy endpoint added by the expo() plugin; the upstream advisory also classifies it under CWE-287, CWE-345 and CWE-601. The endpoint, which helps a system browser launch a social sign-in, read a state value out of the caller-supplied authorization URL and stored it in a signed cookie without verifying that the server had issued it. The signature is an HMAC-SHA256 keyed with the application secret - the same computation used for HS256 JSON Web Token signatures and for Better Auth's compact session cookie cache - so a value minted through this endpoint is accepted anywhere that secret-keyed signature type is trusted, including email-change tokens. The same endpoint also permitted an open redirect to arbitrary external HTTPS sites, and wildcard entries in trustedOrigins could match URLs outside the intended scheme, host or path (and previously allowed userinfo-bearing or unparsable URLs). The fix signs only an unexpired server-issued state, restricts redirects to the authorization endpoint origin of a configured social, generic OAuth or trusted SSO provider, and parses wildcard trusted origins by scheme, host and path, including numeric-only wildcard hosts matching IPv4 addresses only. CPE data identifies better-auth as the affected project.
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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Public network endpoint signs attacker-supplied state with no auth or user interaction (AV:N/AC:L/PR:N/UI:N); forged tokens yield impersonation and email change (C:H/I:H) but no availability impact (A:N).
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
Lifecycle Timeline
2DescriptionCVE.org
@better-auth/expo before 1.7.16 allows certain account-takeover outcomes (e.g., unauthenticated changes of any account's email address), because it signs a caller-supplied state value without checking whether that value had been issued by the server. NOTE: the application secret must be rotated after updating to a fixed version.
Technical POC Analysis
The vulnerable code is the expo() server plugin from @better-auth/expo.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A critical account takeover vulnerability in the @better-auth/expo package (versions 1.4.0-beta.6 through 1.7.15 and 1.8.0-beta.0 through 1.8.0-beta.4) allows unauthenticated attackers who know a victim's email address to change that email and then sign in as the user, requiring no action from the victim. This puts all users of applications using these versions at risk of full account compromise, potentially leading to data breaches, unauthorized transactions, and reputational damage. Leadership must prioritize immediate remediation because exploitation is trivial with only an email address and no public exploit is identified at time of analysis.
No vendor-released patch identified at time of analysis; interim mitigations include disabling the expo() server plugin if not essential, enforcing additional authentication factors for email changes, monitoring for anomalous email change requests, and restricting network access to the authentication endpoints.
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
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
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
Multiple authentication bypass vulnerabilities in @better-auth/sso before version 1.6.21 enable low-privileged attackers
Two domain-ownership authentication bypass flaws in @better-auth/sso allow authenticated organization owners to compromi
EUVD-2026-116694
GHSA-hv45-wgqh-c9j5
NVD
CVE.org
EPSS
Exploit-DB