{"id":"CVE-2026-53513","state":"PUBLISHED","title":"Better Auth: Server-side request forgery via unvalidated OIDC endpoints on @better-auth/sso provider registration","description":"Better Auth is an authentication and authorization library for TypeScript. Prior to 1.6.11, the @better-auth/sso plugin's POST /sso/register and POST /sso/update-provider endpoints accept attacker-controlled oidcConfig.userInfoEndpoint, tokenEndpoint, and jwksEndpoint URLs when skipDiscovery: true is set, store them on the ssoProvider row without origin validation, and fetch them during OIDC callback, allowing non-blind server-side request forgery and possible account linking when trustEmailVerified: true is configured. This issue is fixed in version 1.6.11.","publishedAt":"2026-07-15T17:15:59.611Z","updatedAt":"2026-07-15T19:29:02.266Z","severity":{"score":9.6,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["better-auth better-auth","@better-auth sso"],"affected":[{"vendor":"better-auth","product":"better-auth","versions":[{"version":">= 0.1.0, < 1.6.11","status":"affected"}]},{"vendor":"@better-auth","product":"sso","versions":[{"version":">= 0.1.0, < 1.6.11","status":"affected"}]}],"references":["https://github.com/better-auth/better-auth/security/advisories/GHSA-5rr4-8452-hf4v","https://github.com/better-auth/better-auth/pull/9574","https://github.com/better-auth/better-auth/commit/37f60cb176cb53147da7dfd5ec15afa5b486e81e","https://github.com/better-auth/better-auth/releases/tag/v1.6.11"],"weaknesses":["CWE-20","CWE-345","CWE-441","CWE-918"],"ingestedAt":"2026-10-29T20:12:16.098Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/53xxx/CVE-2026-53513.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-53513","state":"PUBLISHED","datePublished":"2026-07-15T17:15:59.611Z","dateUpdated":"2026-07-15T19:29:02.266Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-06-09T17:30:33.455Z"},"containers":{"cna":{"title":"Better Auth: Server-side request forgery via unvalidated OIDC endpoints on @better-auth/sso provider registration","descriptions":[{"lang":"en","value":"Better Auth is an authentication and authorization library for TypeScript. Prior to 1.6.11, the @better-auth/sso plugin's POST /sso/register and POST /sso/update-provider endpoints accept attacker-controlled oidcConfig.userInfoEndpoint, tokenEndpoint, and jwksEndpoint URLs when skipDiscovery: true is set, store them on the ssoProvider row without origin validation, and fetch them during OIDC callback, allowing non-blind server-side request forgery and possible account linking when trustEmailVerified: true is configured. This issue is fixed in version 1.6.11."}],"affected":[{"vendor":"better-auth","product":"better-auth","versions":[{"version":">= 0.1.0, < 1.6.11","status":"affected"}]},{"vendor":"@better-auth","product":"sso","versions":[{"version":">= 0.1.0, < 1.6.11","status":"affected"}]}],"references":[{"url":"https://github.com/better-auth/better-auth/security/advisories/GHSA-5rr4-8452-hf4v","name":"https://github.com/better-auth/better-auth/security/advisories/GHSA-5rr4-8452-hf4v","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/better-auth/better-auth/pull/9574","name":"https://github.com/better-auth/better-auth/pull/9574","tags":["x_refsource_MISC"]},{"url":"https://github.com/better-auth/better-auth/commit/37f60cb176cb53147da7dfd5ec15afa5b486e81e","name":"https://github.com/better-auth/better-auth/commit/37f60cb176cb53147da7dfd5ec15afa5b486e81e","tags":["x_refsource_MISC"]},{"url":"https://github.com/better-auth/better-auth/releases/tag/v1.6.11","name":"https://github.com/better-auth/better-auth/releases/tag/v1.6.11","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":9.6,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-20","lang":"en","description":"CWE-20: Improper Input Validation","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-345","lang":"en","description":"CWE-345: Insufficient Verification of Data Authenticity","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-441","lang":"en","description":"CWE-441: Unintended Proxy or Intermediary ('Confused Deputy')","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-918","lang":"en","description":"CWE-918: Server-Side Request Forgery (SSRF)","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-07-15T17:15:59.611Z"},"source":{"advisory":"GHSA-5rr4-8452-hf4v","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-15T19:28:52.542592Z","id":"CVE-2026-53513","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-15T19:29:02.266Z"}}]}}}