CVE-2026-53515: @better-auth/sso: SSO provider may allow registration for any org member without a checking their role
The SSO plugin’s POST /sso/register endpoint lets any member of an organization attach a new SSO provider to that organization. It checks that the caller has a membership row, but it does not check whether the caller has an administrative role for the organization.
This creates an authorization mismatch for the same resource. Other org-linked SSO provider management endpoints treat those providers as admin-managed: list, get, update, and delete require the caller to be an organization owner or admin. The create path is less restrictive, so a regular member can attach an attacker-controlled OIDC or SAML identity provider to an organization they do not administer. After registration, downstream organization provisioning can add IdP-asserted users from /sso/callback/{providerId} into the target organization, defaulting to role member.
References
- github.com/advisories/GHSA-gv74-j8m3-fg5f
- github.com/better-auth/better-auth/commit/86765f1597378f5c3deed1b80ca91faac0a6bf00
- github.com/better-auth/better-auth/issues/9133
- github.com/better-auth/better-auth/pull/9220
- github.com/better-auth/better-auth/releases/tag/v1.6.11
- github.com/better-auth/better-auth/security/advisories/GHSA-gv74-j8m3-fg5f
- nvd.nist.gov/vuln/detail/CVE-2026-53515
Code Behaviors & Features
Detect and mitigate CVE-2026-53515 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →