Authentication Bypass in Better Auth Library for TypeScript
CVE-2025-61928
9.3CRITICAL
What is CVE-2025-61928?
The Better Auth library for TypeScript contains a serious vulnerability that allows unauthenticated attackers to create and modify API keys for any user. This occurs when attackers manipulate the userId
in the request body sent to the API key creation route. The issue arises due to insufficient session checks and faulty field validation, leading to unauthorized access and potential compromise of user data. Users are highly encouraged to update to version 1.3.26 or later to mitigate these risks.
Affected Version(s)
better-auth < 1.3.26