CVE-2026-53518
HIGH 7.6CVSS 4.0@better-auth/oauth-provider's OAuth authorization-code grant allows concurrent redemption when two token requests race the find-then-delete primitive
Better Auth is an authentication and authorization library for TypeScript. From 1.6.0 until 1.6.11, the @better-auth/oauth-provider POST /oauth2/token endpoint for the authorization_code grant redeems a single-use authorization code through a non-atomic find-then-delete sequence, allowing two concurrent requests to pass the read step and mint independent access tokens, refresh tokens, and ID tokens; legacy /oauth2/token and /mcp/token paths in oidc-provider and mcp plugins share the same primitive. This issue is fixed in version 1.6.11.
- Published
- 15 Jul 2026
- Last modified
- 21 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-294CWE-362CWE-367
- Also known as
- GHSA-7w99-5wm4-3g79
- Sources
- NVDJSONOSV GHSA-7w99-5wm4-3g79JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 7.6 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | better-auth | better-auth/oauth-providercpe:2.3:a:better-auth:better-auth\/oauth-provider:*:*:*:*:*:node.js:*:* |
>= 1.6.0, < 1.6.11 | 1.6.11 |
| NVD | better-auth | better_authcpe:2.3:a:better-auth:better_auth:*:*:*:*:*:node.js:*:* |
>= 1.6.0, < 1.6.11 | 1.6.11 |
| OSV | npm | @better-auth/oauth-provider | >= 1.6.0, < 1.6.11 | 1.6.11 |
| OSV | npm | better-auth | < 1.6.11 | 1.6.11 |
References
- https://github.com/better-auth/better-auth/commit/b4bc65a007784b2eb0efb459e5fa6fd8055d3ec9 · Patch, WEB
- https://github.com/better-auth/better-auth/releases/tag/v1.6.11 · Release Notes, WEB
- https://github.com/better-auth/better-auth/security/advisories/GHSA-7w99-5wm4-3g79 · Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-53518 · ADVISORY
- https://github.com/better-auth/better-auth · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 15 Jul 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 7 Jul 2026)