Summary
CVE-2026-121802 is a critical origin validation error (CWE-346) in the @better-auth/expo plugin for Better Auth. The plugin signs a caller-supplied state value without checking that the server issued it. An unauthenticated remote attacker can use this to take over accounts, for example by changing the email address of any account. The CVSS v3.1 base score is 9.1 (Critical).
Technical details
- Root cause: The
expo()plugin’s authorization proxy endpoint (/expo-authorization-proxy) signs a user-supplied value without verifying that the server issued it. It signs with the same application secret used for email verification and session cookies. - Trigger conditions: The server registers the
expo()plugin. Some outcomes, such as wildcard origin matching, also requiretrustedOriginsto contain wildcard entries likemyapp://*. - Attack vector: Network, with no privileges and no user interaction required.
- Impact:
- An attacker who knows a user’s email address can impersonate that account and change its email address.
- With session cookie caching enabled, knowing a user’s ID is enough for account takeover.
- The flaw also allows open redirects to external HTTPS sites and lets misconfigured wildcard origins match unintended URLs.
Affected software
@better-auth/expofrom 1.4.0-beta.6 up to, but not including, 1.7.16@better-auth/expofrom 1.8.0-beta.0 up to, but not including, 1.8.0-beta.5
The CVE record lists the affected range as 0 through 1.7.15. The vendor advisory narrows it to the ranges above.
Severity
CVSS v3.1 base score: 9.1 (Critical)
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Mitigation and recommended actions
- Immediate: Upgrade
@better-auth/expoto 1.7.16 (1.7.x line) or 1.8.0-beta.5 (1.8 beta line). - After upgrading: Rotate the application secret. This invalidates signatures and cookies that were forged before the patch.
- Workarounds if you cannot patch immediately:
- Remove the
expo()plugin if you don’t need Expo social sign-in. - Block requests to
/expo-authorization-proxywhere thestateparameter is not exactly 32 characters of letters, digits, hyphens or underscores.
- Remove the

