{"id":"CVE-2026-53517","published":"2026-07-15T17:33:38Z","modified":"2026-07-15T19:21:22Z","title":"Better Auth OAuth Provider: Refresh Token Rotation Race Condition Allows Concurrent Replay and Token Family Forking","vendor":"better-auth","product":"better-auth","tier":"tail","description":{"text":"Better Auth is an authentication and authorization library for TypeScript. From 1.4.8-beta.7 until 1.6.11, the @better-auth/oauth-provider POST /oauth2/token endpoint on the refresh_token grant performs a non-atomic read, validate, revoke, and mint sequence on the oauthRefreshToken row, allowing concurrent requests with the same parent refresh token to pass the revoked check and create forked refresh-token families; the vulnerable range also includes embedded better-auth plugin versions before 1.6.0. This issue is fixed in version 1.6.11.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00422,"percentile":0.37287,"provenance":"source"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"},{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"references":[{"url":"https://github.com/better-auth/better-auth/security/advisories/GHSA-392p-2q2v-4372","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/better-auth/better-auth/commit/c6918ecc9e3a75892169415d7f6c95b591b6a52d","tags":["x_refsource_MISC"]},{"url":"https://github.com/better-auth/better-auth/releases/tag/v1.6.11","tags":["x_refsource_MISC"]}],"priority":{"score":13.1,"factors":[{"name":"EPSS percentile","points":7.46},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"better-auth","affectedVersions":[{"vendor":"better-auth","product":"better-auth","versions":[">= 1.4.8-beta.7, < 1.6.0"]},{"vendor":"@better-auth","product":"oauth-provider","versions":[">= 1.6.0, < 1.6.11"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-07-15T19:20:42.640935Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@better-auth/oauth-provider","vulnerableRanges":[">=1.6.0, <1.6.11"],"patched":["1.6.11"],"from":["GHSA-392p-2q2v-4372"],"provenance":"source"},{"ecosystem":"npm","package":"better-auth","vulnerableRanges":[">=1.4.8-beta.7, <1.6.0"],"patched":["1.6.0"],"from":["GHSA-392p-2q2v-4372"],"provenance":"source"}],"summary":{"text":"A race condition in the @better-auth/oauth-provider package of the Better Auth TypeScript library affects the POST /oauth2/token endpoint's refresh_token grant, where the check, revocation and issuance of refresh tokens are not performed atomically. An attacker with a valid, low-privileged account who can send concurrent token requests using the same refresh token can get multiple refresh-token families issued from one parent, with confidentiality and integrity impact and no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:42:33Z"},"euvd":{"id":"EUVD-2026-44745","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-better-auth-cve-2026-53517","children":[{"from":"CVE-2026-53517","to":"CVE-2026-53518","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/oauth-provider/src/token.ts"],"commits":["https://github.com/better-auth/better-auth/commit/c6918ecc9e3a75892169415d7f6c95b591b6a52d","https://github.com/better-auth/better-auth/commit/b4bc65a007784b2eb0efb459e5fa6fd8055d3ec9"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.45,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2026-41427","published":"2026-04-24","fixed":"1.6.5","kev":false,"link":{"from":"CVE-2026-41427","to":"CVE-2026-53517","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@better-auth/oauth-provider","fromFixed":"1.6.5","toFixed":"1.6.11","daysApart":82}]}},{"cve":"CVE-2026-53517","published":"2026-07-15","fixed":"1.6.11","kev":false},{"cve":"CVE-2026-53518","published":"2026-07-15","fixed":"1.6.11","kev":false}],"package":"npm:@better-auth/oauth-provider"}}