{"id":"CVE-2026-53512","published":"2026-07-15T17:18:09Z","modified":"2026-07-18T01:08:08Z","title":"Better Auth: OAuth refresh-token replay via missing client authentication on oidc-provider and mcp plugins","vendor":"better-auth","product":"better-auth","tier":"tail","description":{"text":"Better Auth is an authentication and authorization library for TypeScript. Prior to 1.6.11, the legacy oidcProvider and mcp plugins expose OAuth token endpoints whose refresh_token grant authenticates only possession of the bound refreshToken row and matching client_id, without verifying the confidential client's client_secret, allowing an attacker with a valid refresh_token to mint access tokens and rotated refresh tokens through /api/auth/oauth2/token or /api/auth/mcp/token. The @better-auth/oauth-provider package is not affected. This issue is fixed in version 1.6.11.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00275,"percentile":0.12642,"provenance":"source"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"},{"id":"CWE-306","name":"Missing Authentication for Critical Functionality"},{"id":"CWE-345","name":"Insufficient Verification of Data Authenticity"},{"id":"CWE-863","name":"Incorrect Authorization"}],"references":[{"url":"https://github.com/better-auth/better-auth/security/advisories/GHSA-pw9m-5jxm-xr6h","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/better-auth/better-auth/pull/9576","tags":["x_refsource_MISC"]},{"url":"https://github.com/better-auth/better-auth/commit/1f2ff4215c4affff0b140b0c0a712c0dde35659c","tags":["x_refsource_MISC"]},{"url":"https://github.com/better-auth/better-auth/releases/tag/v1.6.11","tags":["x_refsource_MISC"]}],"priority":{"score":8.9,"factors":[{"name":"EPSS percentile","points":2.53},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"better-auth","affectedVersions":[{"vendor":"better-auth","product":"better-auth","versions":["< 1.6.11"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-07-18T01:07:56.612326Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"better-auth","vulnerableRanges":["<1.6.11"],"patched":["1.6.11"],"from":["GHSA-pw9m-5jxm-xr6h"],"provenance":"source"}],"summary":{"text":"Better Auth, the TypeScript authentication library, has a flaw in its legacy oidcProvider and mcp plugins, where the OAuth refresh_token grant on the token endpoints does not verify the confidential client's client_secret. The @better-auth/oauth-provider package is not affected. An attacker who holds a valid refresh token and its matching client_id can call the token endpoint over the network, with no authentication or user interaction, to mint new access tokens and rotated refresh tokens.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:57:19Z"},"euvd":{"id":"EUVD-2026-44735","exploited":false,"provenance":"source"}}