Skip to main content

Better Auth Expo CVE-2026-121802

| EUVDEUVD-2026-116694 CRITICAL
Origin Validation Error (CWE-346)
2026-11-04 mitre GHSA-hv45-wgqh-c9j5
9.1
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

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

  1. Access
    Learn target user's email address
  2. Delivery
    Send crafted request to /expo-authorization-proxy with chosen state
  3. Exploit
    Server signs attacker value with application secret
  4. Execution
    Forge email-change token using returned HMAC
  5. Impact
    Change 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

Better Auth 0 <1.7.16

Affected Packages

euvd better_auth fix: 1.7.16

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

Vendor (mitre) PRIMARY 9.1 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 9.1 CRITICAL

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).

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

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

2
Patch available
Nov 04, 2026 - 04:16 EUVD
CVE Published
Nov 04, 2026 - 02:36 cve.org
CRITICAL 9.1

DescriptionCVE.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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.2%
Top 90% exploitable
Prevalence
Medium
popular open-source TS auth library; only expo()-plugin deployments affected
Social Media
1
Sightings
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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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· derived
Out-of-Cycle
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0
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-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-67328 HIGH
8.6 Aug 01

Multiple authentication bypass vulnerabilities in @better-auth/sso before version 1.6.21 enable low-privileged attackers

CVE-2026-80192 HIGH
8.6 Aug 25

Two domain-ownership authentication bypass flaws in @better-auth/sso allow authenticated organization owners to compromi

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