CVE-2026-53513: @better-auth/sso provider registration has server-side request forgery via unvalidated OIDC endpoints
(updated )
The @better-auth/sso plugin’s POST /sso/register endpoint accepts attacker-controlled oidcConfig.userInfoEndpoint, tokenEndpoint, and jwksEndpoint URLs when skipDiscovery: true is set, persists them on the ssoProvider row without origin validation, then issues server-side fetches to those URLs during the OIDC callback. The fetched response body is reflected through the user profile, producing a non-blind SSRF reachable by any authenticated session. The same primitive exists on POST /sso/update-provider.
References
- github.com/advisories/GHSA-5rr4-8452-hf4v
- github.com/better-auth/better-auth/commit/37f60cb176cb53147da7dfd5ec15afa5b486e81e
- github.com/better-auth/better-auth/pull/9574
- github.com/better-auth/better-auth/releases/tag/v1.6.11
- github.com/better-auth/better-auth/security/advisories/GHSA-5rr4-8452-hf4v
- nvd.nist.gov/vuln/detail/CVE-2026-53513
Code Behaviors & Features
Detect and mitigate CVE-2026-53513 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →