Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-114607— better-auth: OAuth state can be used as a Magic Link to sign in as another user

Quick assessment

Affected
better-auth better-auth
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Better Auth 是一个面向 TypeScript 的身份认证与授权库。在 1.4.0-beta.18 至 1.7.7 版本中,若部署同时满足以下条件:启用 Magic Link 并将 storeToken 设置为 plain,或将 storeToken 设置为 hashed 且全局配置 verification.storeIdentifier 也设置为 hashed;同时启用了内置的社交登录或通用 OAuth 提供商;并将 account.storeStateStrategy 设置为 database,则系

CVSS 9.1 · Critical

Affected Version Matrix 1

VendorProduct Version RangeStatus
better-auth better-auth >= 1.4.0-beta.18, < 1.7.7 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-114607

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
better-auth: OAuth state can be used as a Magic Link to sign in as another user
Source: CVE Program / CVE List V5
Vulnerability Description
Better Auth is an authentication and authorization library for TypeScript. From 1.4.0-beta.18 until 1.7.7, deployments that enable Magic Link with storeToken set to plain, or with storeToken set to hashed and the global verification.storeIdentifier setting also set to hashed, enable a built-in social or Generic OAuth provider, and use account.storeStateStrategy set to database can accept an OAuth sign-in state value as a Magic Link token. These settings can cause Magic Link verification records and OAuth state to resolve to the same stored identifier, allowing an unauthenticated attacker to start OAuth sign-in for a known email address and redeem the returned state through Magic Link without controlling the mailbox or completing the provider callback. The attacker can obtain a normal session for an existing user, or create an account incorrectly marked as email verified when sign-up is enabled. This issue is fixed in version 1.7.7.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
认证机制不恰当
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
better-auth better-auth >= 1.4.0-beta.18, < 1.7.7 -

II. Public POCs for CVE-2026-114607

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-114607

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-114607 (1)

Vendor Pages for CVE-2026-114607 (1)

Other References for CVE-2026-114607 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-114607

No comments yet


Leave a comment