Intel

AIKIDO-2026-461021

@better-auth/sso is vulnerable to Improper Authorization

CVE-2026-53515Published Jul 20, 2026
July 20, 2026

71

CVE Score

High

Improper Authorization

Are you affected? Scan for Free

TL;DR

The SSO plugin's POST /sso/register endpoint lets any authenticated organization member attach a new SSO provider to that organization. The handler verifies only that the caller has a membership row and never checks whether they hold an owner or admin role, unlike the companion list, get, update, and delete endpoints that gate on isOrgAdmin. A low-privilege member can register an attacker-controlled OIDC or SAML identity provider on an organization they do not administer, and subsequent SSO callbacks can provision IdP-asserted users into that organization. The fix introduces a shared admin-role check so provider registration matches the protection on the other org-linked provider endpoints.

How do I fix this?

Upgrade the @better-auth/sso library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you enable both the sso and organization plugins with user-driven SSO provider registration enabled.

Versions

1.2.10 - 1.6.10

Fixed in 1.6.11

Background info

@better-auth/sso is vulnerable to Improper Authorization in versions 1.2.10 - 1.6.10.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea