Description
Better Auth is an authentication and authorization library for TypeScript. From 1.2.10 until 1.6.11, the @better-auth/sso plugin's POST /sso/register endpoint lets any organization member attach a new SSO provider to that organization because registerSSOProvider checks only for a membership row and does not require an owner or admin role, allowing attacker-controlled OIDC or SAML providers to drive /sso/callback/{providerId} organization provisioning. This issue is fixed in version 1.6.11.
Published: 2026-07-15
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Better Auth is an authentication and authorization library for TypeScript. The flaw lies in the @better-auth/sso plugin's POST /sso/register endpoint, where registerSSOProvider verifies only that the caller is a member of the organization and does not check for an owner or admin role. This omission allows any organization member to register an attacker-controlled OIDC or SAML provider, which can then be used to trigger the /sso/callback/{providerId} flow and provision the organization. The result is unauthorized privilege escalation within the Better Auth system, as the attacker can gain deep access to organizational resources. This weakness aligns with CWE-269, CWE-285, and CWE-863.

Affected Systems

The vulnerability affects versions 1.2.10 through 1.6.11 of the @better-auth/sso plugin and the better-auth core library. All environments running these versions of Better Auth are susceptible, as the flaw resides in the SSO registration flow for all organizations using the plugin.

Risk and Exploitability

The likely attack vector is a crafted HTTP POST request to the /sso/register endpoint; this inference is derived from the description indicating that any organization member can use this endpoint to register providers. The CVSS scoring of 7.1 indicates a high severity. The EPSS score of less than 1% suggests that, while the flaw exists, the current likelihood of exploitation is low; the vulnerability is not listed in the CISA KEV catalog. Attackers would need to send a crafted HTTP POST request to the /sso/register endpoint, and the attack can be carried out remotely by anyone with organization membership. The impact extends to the entire organization, including privileged resources and data, if an attacker can successfully register a malicious SSO provider. The presence of the flaw in the registration endpoint provides an empty authorization guard that can be abused to inject a malicious SSO provider.

Generated by OpenCVE AI on July 31, 2026 at 03:10 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to version 1.6.11 or later to apply the vendor fix that enforces owner or admin role checks on SSO registration.
  • If an upgrade is not immediately possible, restrict access to the POST /sso/register endpoint by configuring your runtime environment to permit only users with an owner or admin role to call it, adding an explicit role check in your authentication middleware.
  • Continuously monitor application logs for unexpected SSO provider registrations and audit organization provisioning events for anomalous activity.

Generated by OpenCVE AI on July 31, 2026 at 03:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-gv74-j8m3-fg5f @better-auth/sso: SSO provider may allow registration for any org member without a checking their role
History

Thu, 23 Jul 2026 22:45:00 +0000

Type Values Removed Values Added
First Time appeared Better-auth
Better-auth better Auth
Vendors & Products Better-auth
Better-auth better Auth

Wed, 15 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 15 Jul 2026 18:00:00 +0000

Type Values Removed Values Added
Description Better Auth is an authentication and authorization library for TypeScript. From 1.2.10 until 1.6.11, the @better-auth/sso plugin's POST /sso/register endpoint lets any organization member attach a new SSO provider to that organization because registerSSOProvider checks only for a membership row and does not require an owner or admin role, allowing attacker-controlled OIDC or SAML providers to drive /sso/callback/{providerId} organization provisioning. This issue is fixed in version 1.6.11.
Title Better Auth: Privilege escalation via SSO provider registration: missing admin role check in @better-auth/sso
Weaknesses CWE-269
CWE-285
CWE-863
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N'}


Subscriptions

Better-auth Better Auth
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-15T19:30:08.165Z

Reserved: 2026-06-09T17:30:33.456Z

Link: CVE-2026-53515

cve-icon Vulnrichment

Updated: 2026-07-15T19:29:59.967Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T03:15:04Z

Weaknesses