# CVE-2026-53518: Better Auth OAuth Provider: Race Condition in Authorization Code Exchange Enables Multi-Use Code Redemption

- Severity: High 7.6 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 26% of CVEs (2026-11-30)
- Published: 2026-07-07T20:56:35.000Z
- Modified: 2026-07-21T16:03:12.347Z
- Also known as: GHSA-7w99-5wm4-3g79
- Weaknesses: CWE-294, CWE-362, CWE-367
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- better-auth better-auth: >= 1.6.0, < 1.6.11
- @better-auth/oauth-provider (npm): from 1.6.0 before 1.6.11
- better-auth (npm): before 1.6.11
- better-auth better-auth/oauth-provider: from 1.6.0 before 1.6.11
- better-auth better_auth: from 1.6.0 before 1.6.11

## Every score

- GitHub_M: CVSS:4.0 7.6 High `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`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`

## References

- <https://github.com/better-auth/better-auth/security/advisories/GHSA-7w99-5wm4-3g79> (mitigation, vendor-advisory, web)
- <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://nvd.nist.gov/vuln/detail/CVE-2026-53518> (advisory)
- <https://github.com/better-auth/better-auth> (package)

## Sources

- CVE List: [CVE-2026-53518](https://www.cve.org/CVERecord?id=CVE-2026-53518), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-7w99-5wm4-3g79](https://github.com/advisories/GHSA-7w99-5wm4-3g79), CC-BY-4.0, modified 2026-07-20
- NVD: [CVE-2026-53518](https://nvd.nist.gov/vuln/detail/CVE-2026-53518), Public domain, modified 2026-07-21

---

Page: https://cve.day/CVE-2026-53518 · Whole record: https://cve.day/CVE-2026-53518.json · Rebuilt by cve.day 2026-11-25T22:59:28.324Z
