Skip to content
← Blog · · df00tech

CVE-2026-114607: OAuth State Reuse as Magic Link Lets Attackers Take Over better-auth Accounts

vuln-intel npm CVE-2026-114607 #checker-reject

What's the Vulnerability

CVE-2026-114607 is an authentication bypass (CWE-287) in the better-auth npm package. The OAuth state parameter generated during the OAuth sign-in flow can be replayed against the Magic Link verification endpoint instead of the intended OAuth callback endpoint. Because the application accepts the state token as valid proof of identity in this cross-endpoint context, an attacker who obtains or predicts a victim's OAuth state value can use it to complete a magic-link sign-in as that victim — resulting in full account takeover with no password or email access required. The flaw carries a CVSS score of 9.1.

Affected Software

  • Package: better-auth (npm)
  • Vendor: npm ecosystem
  • Affected versions: >= 1.4.0-beta.18, < 1.7.7
  • Disclosed: October 27, 2026
  • Patch status: No patched version date is currently recorded

Exploitation Status

Exploitation is currently classified as theoretical — there is no confirmed weaponization, KEV listing, or public proof-of-concept exploitation observed in the wild at this time. That said, authentication-bypass bugs with this severity in widely used auth libraries are a prime target for rapid PoC development once technical details circulate. Defenders running vulnerable better-auth versions should treat this as high-priority patching and monitoring work now, before the exploitation picture changes.

How Our Detection Catches It

Our detection ships across Microsoft Sentinel (KQL), Splunk (SPL), Elastic (EQL), QRadar (AQL), Sumo Logic, Chronicle (YARA-L), and CrowdStrike (CQL), all built around the same core logic:

  • Application and reverse-proxy log analysis for OAuth state tokens being submitted to magic-link verification endpoints — a cross-endpoint pattern that should never legitimately occur.
  • Correlation logic that flags token reuse across OAuth callback and magic-link verification flows for the same identifier.
  • Session-issuance anomaly detection: successful magic-link verification events that lack a corresponding, preceding magic-link email request for that user or session.
  • Package inventory telemetry checks to surface hosts or services running vulnerable better-auth versions (>= 1.4.0-beta.18, < 1.7.7), so exposure can be tracked independently of log activity.

Together, these signals let defenders catch both the exploitation attempt and the underlying exposure, without relying on a single log source.

Full Detection Details

For the complete detection logic, sample events, and ready-to-deploy queries for all supported SIEM platforms, see the full detection page for CVE-2026-114607 on df00tech.

Get new detections in your inbox

New ATT&CK coverage plus CISA KEV / CVE detection rules, roughly weekly. No spam, unsubscribe anytime.