Intel

AIKIDO-2026-679764

@better-auth/sso is vulnerable to Improper Authentication

GHSA-mx9r-x6ww-qjw9Published Oct 19, 2026
October 19, 2026

81

CVE Score

High

Improper Authentication

Are you affected? Scan for Free

TL;DR

The SSO plugin lets a signed-in user register a personal OIDC or SAML provider that reproduces another provider's identity and a victim's user identifier. Signing in through that personal provider can match an existing account linked through the real provider and create a new session for it. This gives the registrant a live session for the victim's account without any action from the victim. The fix stops a personal provider from matching an account linked through a different provider.

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 have not configured resolveUser for the SSO plugin.

Versions

1.7.0 - 1.7.2

Fixed in 1.7.3

Background info

@better-auth/sso is vulnerable to Improper Authentication in versions 1.7.0 - 1.7.2.

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