Intel

AIKIDO-2026-217795

@convex-dev/better-auth is vulnerable to Denial of Service (DoS)

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 6, 2026
July 6, 2026

35

CVE Score

Low

Denial of Service (DoS)

Are you affected? Scan for Free

TL;DR

The Convex adapter's handlePagination helper drives count() and unlimited findMany() as an unbounded paginated scan. When no caller limit is supplied, the per-page numItems budget collapses to 0 after the first 200 rows, so the cursor stops advancing and the loop never reaches its done condition. Any count() or unlimited findMany() over a table or filtered set with more than 200 matching rows loops forever, re-issuing cached findMany queries until the function is killed at its wall-clock limit and exhausting compute. The fix pages at the full 200 rows when there is no limit and adds a forward-progress guard that aborts when a page produces no rows and does not advance the cursor.

How do I fix this?

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

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Versions

0.7.0 - 0.12.4

Fixed in 0.12.5

Background info

@convex-dev/better-auth is vulnerable to Denial of Service (DoS) in versions 0.7.0 - 0.12.4.

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