{"schema":"threatline.record/2","record":{"id":"CVE-2026-114607","aliases":["GHSA-965c-763c-88jm"],"summary":"better-auth: OAuth state can be used as a Magic Link to sign in as another user","details":"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.","categories":["Unclassified"],"product":"better-auth","vendor":"better-auth","ecosystem":null,"affected_ranges":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-114607","source_modified_at":"2026-10-23T15:02:40.820Z","fetched_at":"2026-10-23T18:42:43.628194Z","product":"better-auth","vendor":"better-auth","versions":[{"status":"affected","version":">= 1.4.0-beta.18, < 1.7.7"}],"defaultStatus":null},{"source":"GitHub Advisory Database","source_url":"https://github.com/better-auth/better-auth/security/advisories/GHSA-965c-763c-88jm","source_modified_at":"2026-10-22T16:46:53Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"ecosystem":"npm","name":"better-auth"},"range":">= 1.4.0-beta.18, < 1.7.7"}],"fixed_versions":[{"source":"GitHub Advisory Database","source_url":"https://github.com/better-auth/better-auth/security/advisories/GHSA-965c-763c-88jm","source_modified_at":"2026-10-22T16:46:53Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"ecosystem":"npm","name":"better-auth"},"version":"1.7.7"}],"cvss":9.1,"severity":"Critical","kev":{"listed":false},"epss":{"probability":0.00347,"percentile":0.27075,"score_date":"2026-10-23"},"published_at":"2026-10-22T16:47:27.480Z","modified_at":"2026-10-23T15:02:40.820Z","provenance":[{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-114607","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23T15:02:40.820Z"},{"source":"GitHub Advisory Database","url":"https://github.com/better-auth/better-auth/security/advisories/GHSA-965c-763c-88jm","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-10-22T16:46:53Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-114607","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["CVE List","GitHub Advisory Database","EPSS"],"references":[{"source":"CVE List","url":"https://github.com/better-auth/better-auth/security/advisories/GHSA-965c-763c-88jm","tags":["x_refsource_CONFIRM"]},{"source":"CVE List","url":"https://github.com/better-auth/better-auth/pull/11494","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/better-auth/better-auth/commit/ac54bfd67821a7607533af2059858b12bc54e26a","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/better-auth/better-auth/releases/tag/v1.7.7","tags":["x_refsource_MISC"]}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","cvss_source":"CVE List","ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"total","assessed_at":"2026-10-23T14:55:53.151034Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":null,"confidence":"unknown","reviewed":false},"change_timestamp":"2026-10-23T15:02:40.820Z","content_hash":"9408afc7810ef906f6f518eb145ec44b8b492dff717b78f490ed9531bd1e284f"}}
