CVE-2026-53513
CRITICAL 9.6CVSS 3.1@better-auth/sso provider registration has server-side request forgery via unvalidated OIDC endpoints
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.
- Published
- 15 Jul 2026
- Last modified
- 21 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-20CWE-345CWE-441CWE-918
- Also known as
- GHSA-5rr4-8452-hf4v
- Sources
- NVDJSONOSV GHSA-5rr4-8452-hf4vJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | better-auth | better-auth/ssocpe:2.3:a:better-auth:better-auth\/sso:*:*:*:*:*:node.js:*:* |
< 1.6.11 | 1.6.11 |
| NVD | better-auth | better_authcpe:2.3:a:better-auth:better_auth:*:*:*:*:*:node.js:*:* |
>= 0.1.0, < 1.6.11 | 1.6.11 |
| OSV | npm | @better-auth/sso | >= 0.1.0, < 1.6.11 | 1.6.11 |
References
- https://github.com/better-auth/better-auth/commit/37f60cb176cb53147da7dfd5ec15afa5b486e81e · Patch, WEB
- https://github.com/better-auth/better-auth/pull/9574 · Issue Tracking, Patch, WEB
- https://github.com/better-auth/better-auth/releases/tag/v1.6.11 · Release Notes, WEB
- https://github.com/better-auth/better-auth/security/advisories/GHSA-5rr4-8452-hf4v · Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-53513 · ADVISORY
- https://github.com/better-auth/better-auth · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 15 Jul 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 7 Jul 2026)