Security mailing lists by PureSourceCode

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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD better-auth better-auth/oauth-provider
cpe:2.3:a:better-auth:better-auth\/oauth-provider:*:*:*:*:*:node.js:*:*
>= 1.6.0, < 1.6.11 1.6.11
NVD better-auth better_auth
cpe: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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.