Auth
Your Better Auth app is missing the November 3 security release
Cataloged November 5, 2026 · Cursor · Bolt · v0 · Replit
Symptom
Nothing looks wrong. Sign-in works, the app builds, and deploys. But package.json and the lockfile still hold a Better Auth release from before November 3, 2026, when Better Auth shipped 1.7.16 and 1.8.0-beta.5 to fix 12 security advisories. The critical one is in @better-auth/expo. If the server registers the expo() plugin, a public endpoint signs a value taken from the request with the application secret and returns that signature in a cookie, without checking that the server issued the value. An attacker who only knows a user's email can sign in as that user and change the account's email, with no action from the user. Vercel applied WAF rules for reasonably identifiable issues, and upgrading is still required. Apps that only went to 1.7.7 through 1.7.15 for the earlier Magic Link issue are still missing this release. AI coding tools rarely bump auth packages unless you ask, and a committed lockfile keeps installing the same old version on every redeploy.
Root cause
On November 3, 2026 the Better Auth blog published a security release, titled Security release on Tuesday, November 3, 2026. The fixed versions are better-auth 1.7.16 and better-auth 1.8.0-beta.5. They fix 12 security advisories. Packages released separately, @better-auth/expo, @better-auth/electron, @better-auth/passkey, @better-auth/stripe, and @better-auth/kysely-adapter, ship the same version numbers, so update every Better Auth package together. The security floor on the 1.7 line is 1.7.16. The changelog shows 1.7.17, published November 4, as a later bugfix on that line, so installing the current latest 1.7.x is fine when it is 1.7.16 or later. The advisories name 1.7.16 as the patched release. On the beta line, the patched release is 1.8.0-beta.5 or later. This is a different break from the Magic Link and OAuth state issue fixed in 1.7.7. Apps that only went to 1.7.7 through 1.7.15 are still missing this November 3 release. The one to check first is GHSA-4wq4-2ppv-q3hg, rated Critical, with a CVSS score of 9.1: @better-auth/expo: Authorization proxy can sign values it did not issue. It affects @better-auth/expo from 1.4.0-beta.6 up to, but not including, 1.7.16, and from 1.8.0-beta.0 up to, but not including, 1.8.0-beta.5. It also affects better-auth below 1.7.16, and better-auth from 1.8.0-beta.0 up to, but not including, 1.8.0-beta.5. You are affected if the server registers the expo() plugin. No other setting is needed. The expo() plugin adds a public endpoint that helps the system browser start social sign-in. That endpoint signed a value taken from the request, the state from the caller-supplied authorization URL, with the application secret and returned the signature in a cookie, without checking that the server had issued that state. Better Auth uses the same secret for email verification links and, when enabled, the session cookie cache. An unauthenticated attacker who knows a user's email can sign in as that user and change the account's email, with no action from the user. With session cookie cache enabled, an attacker who knows a user's ID can also act as that user. The same endpoint could also redirect to any external HTTPS site, an open redirect. Wildcard trustedOrigins could match URLs outside the intended scheme, host, and path. After upgrading, rotate the application secret if the endpoint was reachable. Signatures issued before the fix stay valid until the secret changes. If Expo SSO sign-in fails after upgrading, add the identity provider's origin to trustedOrigins. If you cannot upgrade, remove the expo() server plugin when you do not use Expo social sign-in. Otherwise block /expo-authorization-proxy requests whose authorizationURL carries a state that is not exactly 32 characters from A-Z, a-z, 0-9, hyphen, and underscore. The same release also fixes eleven more issues. High: phone numbers can be claimed before they are verified, and Electron desktop sign-in can return the server secret and skip two-factor. Medium: email-change links stay valid after an address changes hands; OAuth can treat an unverified provider email as verified; MySQL serial IDs can return another request's record in the kysely and drizzle adapters; revoked sessions can stay valid with secondaryStorage or the cookie cache; the Email OTP attempt limit can be raced; admin user:update can change another user's phone; org admins can invite an owner with a padded role name; Stripe billing can target another customer's Stripe account (GHSA-x8j7-xh58-rv6x). Low: passkey verification does not enforce origin or user verification. Vercel applied WAF rules for reasonably identifiable issues. The WAF does not replace patching. Apps that use expo() should still upgrade and rotate the application secret, because forged signatures from before the WAF stay valid until the secret changes.
Before and after
package.json. The before line is better-auth 1.7.15, which includes the earlier Magic Link fix and does not include the November 3, 2026 security release. The after line is 1.7.16, the security-release floor on the 1.7 line. A later 1.7.x is fine. On the beta line, move to 1.8.0-beta.5 or later. Move every @better-auth/* package to the same version, commit the lockfile, and redeploy. If expo() is registered, rotate the application secret after the upgrade. Do not print the secret.
Before
"better-auth": "1.7.15"
After
"better-auth": "1.7.16"
Fix prompt
In this project only. Do not scan or test anyone else's app. 1. Check this project's better-auth version and every @better-auth/* package, including @better-auth/expo, in package.json and the lockfile. Report each installed version. Read the versions from the lockfile, not just the range in package.json. If this project does not use better-auth, say so and stop. 2. If better-auth is on the 1.7 line and below 1.7.16, upgrade better-auth and every @better-auth/* package to the same version, 1.7.16 or later on the 1.7 line. npm install better-auth@1.7.16 is the security-release floor. A later 1.7.x, such as 1.7.17, is a bugfix on that line and is fine when it is 1.7.16 or newer. The advisories name 1.7.16 as the patched release. If this project is on the 1.8 beta line, upgrade to 1.8.0-beta.5 or later. Stay on the line this project already uses. Packages released separately, including @better-auth/expo, @better-auth/electron, @better-auth/passkey, @better-auth/stripe, and @better-auth/kysely-adapter, ship the same version numbers. Update every Better Auth package together. 3. Reinstall dependencies. Run the build. Commit package.json and the updated lockfile together. Fix anything the upgrade broke. Do not use --force or --legacy-peer-deps to hide a conflict. If there is a conflict, stop and show it to me. 4. Search this project's server code for expo(. Tell me whether the expo() plugin is registered, and the file and line. Do not print secrets. If expo() is registered, or was registered while that endpoint was reachable, rotate the application secret. That is BETTER_AUTH_SECRET, or the secret option in the Better Auth config. Set the new value in this project's secret store. Do not print the old value or the new value. Signatures issued before the fix stay valid until the secret changes. Do not rotate the secret unless expo() was registered or I ask you to. 5. Redeploy this project from that commit. Then tell me where in my host's build log to confirm the better-auth version that was actually installed. 6. If Expo SSO sign-in fails after the upgrade, add the identity provider's origin to trustedOrigins and show me the diff. The advisory says wildcard trustedOrigins could match URLs outside the intended scheme, host, and path, so do not add a wildcard. 7. If I say I cannot upgrade yet, and this project does not use Expo social sign-in, remove the expo() server plugin and show me the diff. If it does use Expo social sign-in, tell me the advisory's workaround: block /expo-authorization-proxy requests whose authorizationURL carries a state that is not exactly 32 characters from A-Z, a-z, 0-9, hyphen, and underscore. Do not apply that block unless I ask. Do not print keys, tokens, passwords, or environment variable values. Do not edit unrelated files.
Paste this into the coding tool that has your own project open.
2-minute self-check
These steps are for an app you own. Do not run them against someone else's project.
- In your own project, run npm ls better-auth and npm ls @better-auth/expo, or open the lockfile. The November 3, 2026 security floor is 1.7.16 on the 1.7 line, and 1.8.0-beta.5 on the beta line. GHSA-4wq4-2ppv-q3hg affects @better-auth/expo from 1.4.0-beta.6 up to, but not including, 1.7.16, and from 1.8.0-beta.0 up to, but not including, 1.8.0-beta.5. It also affects better-auth below 1.7.16, and better-auth from 1.8.0-beta.0 up to, but not including, 1.8.0-beta.5. A version from 1.7.7 through 1.7.15 fixed the earlier Magic Link issue and does not include this release. After you upgrade, redeploy, and confirm the version in your own host's build log.
- In the same list, check that every @better-auth/* package is on that same version. @better-auth/expo, @better-auth/electron, @better-auth/passkey, @better-auth/stripe, and @better-auth/kysely-adapter ship the same version numbers and move together.
- In your own server code, search for expo(. You are affected by GHSA-4wq4-2ppv-q3hg if the server registers the expo() plugin. No other setting is needed. If that plugin is registered, upgrade, then rotate the application secret (BETTER_AUTH_SECRET, or the secret option). Signatures issued before the fix stay valid until the secret changes. Do not print the secret.
- If Expo SSO sign-in fails after you upgrade your own app, add the identity provider's origin to trustedOrigins. The advisory says wildcard trustedOrigins could match URLs outside the intended scheme, host, and path.
Common questions
I do not use Expo. Do I still need this upgrade?
Yes, if this app uses better-auth. The November 3 release fixes 12 advisories. The Critical one, GHSA-4wq4-2ppv-q3hg, applies only when the server registers the expo() plugin. The other eleven still apply to a Better Auth app that does not use Expo. Those include phone numbers that can be claimed before they are verified, Electron desktop sign-in that can return the server secret and skip two-factor, and the rest of the High, Medium, and Low issues in that release. Upgrade every Better Auth package to 1.7.16 or later on the 1.7 line, or to 1.8.0-beta.5 or later on the beta line.
My app is on Vercel and the WAF is on. Is that enough?
No. Vercel applied WAF rules for reasonably identifiable issues, and the bulletin says the WAF does not replace patching. Upgrade anyway. If expo() was reachable, also rotate the application secret. Forged signatures from before the WAF stay valid until the secret changes.
I already upgraded to 1.7.7 for the Magic Link issue. Am I done?
No. The Magic Link and OAuth state issue is a different break, fixed in 1.7.7. This November 3 release is fixed in 1.7.16 and in 1.8.0-beta.5. Apps that stopped anywhere from 1.7.7 through 1.7.15 are still missing it. Upgrade to 1.7.16 or later on the 1.7 line, or to 1.8.0-beta.5 or later on the beta line. 1.7.17, published November 4, is a later bugfix on the 1.7 line, so the current latest 1.7.x is fine when it is 1.7.16 or newer. The advisories name 1.7.16 as the patched release.
Sources
- Better Auth Blog: Security release on Tuesday, November 3, 2026
- Vercel Security bulletin: Better Auth November 2026 security release
- Better Auth advisory GHSA-4wq4-2ppv-q3hg: @better-auth/expo authorization proxy can sign values it did not issue
- Strix: Better Auth Expo signing oracle (November 3, 2026)
- GitHub advisory GHSA-x8j7-xh58-rv6x (Stripe billing can target another customer's Stripe account)