Better Auth: Server-side request forgery via unvalidated OIDC endpoints on @better-auth/sso provider registration
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-345.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| better-auth | better-auth | 0.1.0 to before 1.6.11 | 1.6.11 | Patch available | CNA |
| better-auth | sso | 0.1.0 to before 1.6.11 | 1.6.11 | Patch available | CNA |
| — | @better-auth/sso (npm) | 0.1.0 to before 1.6.11 | 1.6.11 | Patch available | GHSA-5rr4-8452-hf4v |
- better-auth Vendorbetter-auth Affected 0.1.0 to before 1.6.11 Fixed in 1.6.11 Patch available CNA
- sso Vendorbetter-auth Affected 0.1.0 to before 1.6.11 Fixed in 1.6.11 Patch available CNA
- @better-auth/sso (npm) Vendor— Affected 0.1.0 to before 1.6.11 Fixed in 1.6.11 Patch available GHSA-5rr4-8452-hf4v
CPE configurations NVD · 2
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:better-auth:better-auth\/sso:*:*:*:*:*:node.js:*:* | before 1.6.11 | Vulnerable | better-auth |
| cpe:2.3:a:better-auth:better_auth:*:*:*:*:*:node.js:*:* | 0.1.0 to before 1.6.11 | Vulnerable | better-auth |
- cpe:2.3:a:better-auth:better-auth\/sso:*:*:*:*:*:node.js:*:* Versions before 1.6.11 Vulnerable ·better-auth
- cpe:2.3:a:better-auth:better_auth:*:*:*:*:*:node.js:*:* Versions 0.1.0 to before 1.6.11 Vulnerable ·better-auth
Remediation
- Fix · CNA better-auth (better-auth) Fixed in 1.6.11
- Fix · CNA sso (@better-auth) Fixed in 1.6.11
- Fix · GHSA-5rr4-8452-hf4v @better-auth/sso (npm) Fixed in 1.6.11 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-53513
- 2026-10-03 Alias added: GHSA-5rr4-8452-hf4v
References
Patch 2
Advisory 2
More Better-auth/sso vulnerabilities
- TI-2026-38589 Better Auth: Privilege escalation via SSO provider registration: missing admin role check in @better-auth/sso CVSS 3.1HIGH 7.1
Sources
- CVE-2026-53513 · CVE Program
- CVE-2026-53513 · NVD
- FIRST EPSS
- GHSA-5rr4-8452-hf4v · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences