Skip to main content
Menu
Advisories

Convex Auth v1: Password brute force bypassing the sign-in rate limit

GHSA-8294-QRGQ-R2PWPublished Updated GitHub

Description

We strongly recommend Convex Auth v1 users to update to @convex-dev/auth@0.0.99 or later.

@convex-dev/auth up to 0.0.98 does not apply its failed sign-in rate limit to every path that checks a password. An unauthenticated attacker who knows the email of an account can guess its password without a limit, even when the account is locked after failed sign-ins. A correct guess signs the attacker in as that user.

This affects every application that uses a password-based provider. Accounts with weak or reused passwords are at most risk.

Full details and a proof of concept will be published 30 days after this advisory.

Details

Withheld until the 30-day update.

Proof of concept

Withheld until the 30-day update.

Impact

Account takeover of users of the application, through password guessing. The attacker can read and change everything that the user can.

This happens when:

  • The application uses @convex-dev/auth < 0.0.99.
  • AND it uses a password-based provider: the built-in Password provider, or a custom provider (built on ConvexCredentials) that checks passwords.
  • AND the attacker knows the email (or account ID) of the target account.

Not affected:

  • Convex Auth v2 (@convex-dev/auth 2.0.0 and later)
  • Applications that only use OAuth, OIDC, Anonymous, or email/phone OTP sign-in.

The vulnerable code runs inside the application's own Convex deployment, so Convex cloud, self-hosted and local deployments are affected in the same way.

Remediation and mitigation

Upgrade to @convex-dev/auth@0.0.99 or later and redeploy. This update has no breaking changes.

We are not aware of any exploitation of this issue in the wild. Exploiting it requires a large number of calls to the auth:signIn action. If your deployment's function call volume shows no unusual spike of auth:signIn calls, it is unlikely that it was exploited.

Affected versions

References

GitHub · convex/convex-auth