Better Auth: Server-side request forgery via unvalidated OIDC endpoints on @better-auth/sso provider registration
Summary
| CVE | CVE-2026-53513 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-07-15 18:16:47 UTC |
| Updated | 2026-07-21 15:39:52 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 9.6 CRITICAL from [email protected]
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
EPSS: 0.002520000 probability, percentile 0.166290000 (date 2026-07-21)
Problem Types: CWE-20 | CWE-345 | CWE-441 | CWE-918 | CWE-20 CWE-20: Improper Input Validation | CWE-345 CWE-345: Insufficient Verification of Data Authenticity | CWE-441 CWE-441: Unintended Proxy or Intermediary ('Confused Deputy') | CWE-918 CWE-918: Server-Side Request Forgery (SSRF)
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 9.6 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N |
| 3.1 | CNA | DECLARED | 9.6 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
ChangedConfidentiality
HighIntegrity
HighAvailability
NoneCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Better-auth | Better-auth/sso | All | All | All | All |
| Application | Better-auth | Better Auth | All | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Better-auth | Better-auth | affected >= 0.1.0, < 1.6.11 | Not specified |
| CNA | @better-auth | Sso | affected >= 0.1.0, < 1.6.11 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/better-auth/better-auth/commit/37f60cb176cb53147da7dfd5ec15af... | [email protected] | github.com | Patch |
| github.com/better-auth/better-auth/releases/tag/v1.6.11 | [email protected] | github.com | Release Notes |
| github.com/better-auth/better-auth/pull/9574 | [email protected] | github.com | Issue Tracking, Patch |
| github.com/better-auth/better-auth/security/advisories/GHSA-5rr4-8452-hf4v | [email protected] | github.com | Mitigation, Vendor Advisory |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.