Live threats

All CVEs / Better-auth

CVE-2026-53518Better-auth/oauth-provider

High 7.6 No auth needed

Priority
61
CVSS 4.0
7.6
EPSS
—
Auth required
No
Published
Jul 15, 2026
Updated
Jul 21, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-362, CWE-367
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
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/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

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Better-auth/oauth-provider.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm @better-auth/oauth-provider ≥ 1.6.0 < 1.6.11 1.6.11 npm install @better-auth/oauth-provider@1.6.11
npm better-auth < 1.6.11 1.6.11 npm install better-auth@1.6.11

Per OSV / GitHub Advisories (GHSA-7w99-5wm4-3g79). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
better-authbetter-auth/oauth-provider≥ 1.6.0 < 1.6.11
better-authbetter_auth≥ 1.6.0 < 1.6.11

Official sources

References

Links published by the sources. Open them with care.