Tuesday, August 11, 2026
LIVEThe Unrelenting Cyber Battle: Hacking Threats and the Imperative of Robust Data Protection///Navigating the Cyber Labyrinth: Bolstering Defenses Against Evolving Hacking Threats///The Dual Front War: Battling Hacking and Bolstering Data Protection in the Digital Age///The Ever-Evolving Cyber Threat Landscape: Navigating Hacking and Fortifying Data Protection///The Unseen Battle: Fortifying Data in an Age of Relentless Hacking///The Unseen War: Hacking's Relentless Advance and the Imperative of Data Protection///The Evolving Threat Landscape: Hacking, Data Protection, and the Imperative for Proactive Security///Navigating the Digital Minefield: Bolstering Data Protection in an Era of Relentless Hacking///The Dual Fronts of Digital Defense: Combating Hacking and Fortifying Data Protection///Hacking's New Frontier: Fortifying Data Protection in the Age of Advanced Cyber Threats///The Dual Front: Navigating Hacking Threats and Fortifying Data Protection in the Digital Age///Navigating the Digital Gauntlet: The Evolving Nexus of Hacking and Data Protection///The Unrelenting Cyber Battle: Hacking Threats and the Imperative of Robust Data Protection///Navigating the Cyber Labyrinth: Bolstering Defenses Against Evolving Hacking Threats///The Dual Front War: Battling Hacking and Bolstering Data Protection in the Digital Age///The Ever-Evolving Cyber Threat Landscape: Navigating Hacking and Fortifying Data Protection///The Unseen Battle: Fortifying Data in an Age of Relentless Hacking///The Unseen War: Hacking's Relentless Advance and the Imperative of Data Protection///The Evolving Threat Landscape: Hacking, Data Protection, and the Imperative for Proactive Security///Navigating the Digital Minefield: Bolstering Data Protection in an Era of Relentless Hacking///The Dual Fronts of Digital Defense: Combating Hacking and Fortifying Data Protection///Hacking's New Frontier: Fortifying Data Protection in the Age of Advanced Cyber Threats///The Dual Front: Navigating Hacking Threats and Fortifying Data Protection in the Digital Age///Navigating the Digital Gauntlet: The Evolving Nexus of Hacking and Data Protection///
Subscribe
Cyber Security
Independent · Digital
Thehackingpost
CybersecurityAI-assisted

Critical Authentication Bypass in better-auth API Keys Plugin Allows Unauthenticated Account Takeover

A critical authentication bypass vulnerability has been identified in the better-auth API keys plugin. This flaw allows unauthenticated attackers to generate privileged API keys for arbitrary users.

A critical authentication bypass vulnerability has been identified in the better-auth API keys plugin. This flaw allows unauthenticated attackers to generate privileged API keys for arbitrary users.

The vulnerability, designated as CVE-2025-61928, affects all versions of the better-auth library prior to version 1.3.26. This library is widely used, with approximately 300,000 weekly npm downloads, and is integral to the authentication processes of various organizations.

The Vulnerability and Exploitation Path

ZeroPath discovered that the vulnerability is located in the createApiKey handler within the API keys plugin. The handler uses a conditional to determine if authentication is necessary, based on the presence of a session and a userId field in the request body.

If no session exists but a userId is provided, the authRequired variable evaluates to false . This bypasses the validation branch that normally blocks privileged fields such as rateLimitMax , remaining , refillAmount , and permissions .

An unauthenticated attacker can exploit this by sending a POST request to /api/auth/api-key/create with a victim's user ID, receiving a valid API key bound to that account.

A critical authentication bypass vulnerability has been identified in the better-auth API keys plugin.
Olivia Harper · Thehackingpost

The logic flaw also affects the updateApiKey handler, broadening the attack surface to credential modification. All previous releases containing the API keys plugin are vulnerable.

This issue is significant because API keys typically have longer lifespans than browser sessions and often possess elevated privileges, allowing attackers to bypass multi-factor authentication and potentially take over accounts.

Organizations utilizing the better-auth API keys plugin should upgrade to version 1.3.26 or later, which corrects the authorization flaw. Post-upgrade, all API keys generated during the vulnerability window should be rotated, and unused credentials invalidated.

It is advisable to review application and reverse-proxy logs for unauthorized calls to /api/auth/api-key/create or /api/auth/api-key/update , particularly those lacking authenticated session cookies and containing userId , rateLimitMax , or permissions fields.

Advertisement

Any suspicious log activity should prompt a full credential reissuance for affected accounts, with subsequent monitoring for API usage from unfamiliar IPs or service tokens.

Following responsible disclosure, better-auth's maintainers rapidly released a patch within 24 hours. The GitHub Security Advisory GHSA-99h5-pjcv-gr6v and CVE-2025-61928 were published soon after, demonstrating prompt vendor responsiveness.

Based on reporting by Cyber Security News.

AI transparency. This article was produced with the assistance of artificial intelligence and published under human editorial oversight. AI systems can make mistakes. Read how we use AI (EU AI Act, Art. 50).
Related Stories