CVE Catalog

CVE-2026-53518

HighCVSS 8.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.50%

39th percentile - higher than 39% of all known CVEs

Summary

Better Auth versions 1.6.0 through 1.6.11 have a vulnerability in the POST /oauth2/token endpoint for the authorization_code grant. The authorization code is checked and deleted in a non-atomic find-then-delete sequence, allowing two concurrent requests to read the same code and mint independent access, refresh, and ID tokens.

Risk Assessment

An attacker can reuse a single-use authorization code multiple times, gaining unauthorized access to user resources and the ability to impersonate the user. This can lead to data theft, privilege escalation, and session integrity compromise.

Recommendation

Immediately update Better Auth to version 1.6.11 or later. If an update is not possible, implement a locking mechanism (e.g., atomic lock) on the authorization code exchange operation.

Other vulnerabilities in Better Auth

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS