CVE-2026-53513: Better Auth: Server-side request forgery via unvalidated OIDC endpoints on @better-auth/sso provider registration
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.
Security readout for executives and security teams
Plain-English summary
Better Auth SSO could let a low-privileged user make the server contact attacker-chosen OIDC URLs if discovery was skipped. That can expose internal network data through server-side requests and, in certain trustEmailVerified configurations, may affect account linking. The vendor fixed it in 1.6.11.
Executive priority
Treat as urgent for applications offering SSO provider self-service or delegated administration. The issue can turn authentication infrastructure into an internal request proxy and may affect account identity handling in specific configurations.
Technical view
Before 1.6.11, @better-auth/sso stored userInfoEndpoint, tokenEndpoint, and jwksEndpoint values from register/update-provider requests when skipDiscovery was true, without validating origin. Those endpoints were later fetched during OIDC callback, creating non-blind SSRF. The advisory also notes possible account linking when trustEmailVerified is true.
Likely exposure
Exposure is most likely in TypeScript applications using Better Auth or @better-auth/sso versions 0.1.0 through before 1.6.11, especially where SSO provider registration or updates are reachable by low-privileged users and skipDiscovery is enabled.
Exploitation context
The CVSS vector indicates network access, low privileges, no user interaction, and high confidentiality and integrity impact. KEV is false, and the provided sources do not report active exploitation in the wild.
Researcher notes
Focus review on skipDiscovery provider paths, stored OIDC endpoint origins, and trustEmailVerified behavior. Do not assume all Better Auth deployments are exposed; the risky path depends on SSO plugin usage, version, endpoint reachability, and configuration.
Mitigation direction
Upgrade Better Auth and @better-auth/sso to version 1.6.11 or later.
Review vendor advisory and release notes for deployment-specific guidance.
Restrict SSO provider registration and update access to trusted administrators.
Review skipDiscovery and trustEmailVerified usage in SSO provider configurations.
Inspect existing SSO provider records for unexpected or untrusted OIDC endpoint URLs.
Validation and detection
Inventory applications using better-auth or @better-auth/sso below version 1.6.11.
Check whether POST /sso/register or /sso/update-provider is exposed to low-privileged users.
Review SSO provider rows for custom userInfoEndpoint, tokenEndpoint, and jwksEndpoint values.
Confirm production dependencies resolve to Better Auth version 1.6.11 or later.
Audit logs for unusual OIDC callback traffic to unexpected internal or external endpoints.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-20: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
CWE-918: Information exposure and cloud metadata lookup
Information exposure and SSRF weaknesses can make discovery, cloud metadata, and credential material review relevant. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references SSRF or metadata access, so cloud discovery and credential material review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
1ADP providers
5Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-20 · source CWE mapping
Improper Input Validation
Improper Input Validation represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
Insufficient Verification of Data Authenticity represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
Unintended Proxy or Intermediary ('Confused Deputy')
Unintended Proxy or Intermediary ('Confused Deputy') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
Server-Side Request Forgery (SSRF) represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.