CVE-2026-41427 is a high-severity vulnerability affecting the Better Auth library, an authentication and authorization library for TypeScript. This vulnerability allows deployments that configured clientPrivileges to restrict client registration to be bypassed, enabling any authenticated user to reach the create endpoints and register an OAuth client with attacker-chosen redirect URIs and metadata. The vulnerability was discovered prior to version 1.6.5, which fixes the issue.
The vulnerability has a CVSS score of 7.1, classified as high severity. This score indicates a significant risk to organizations utilizing this library. The attack vector is network-based with low complexity, meaning that an attacker can exploit this vulnerability without advanced skills. Organizations using Better Auth should take immediate action to secure their applications.
Risk to organizations includes unauthorized registration of OAuth clients, which can lead to potential data exposure or unauthorized access to sensitive information. Because this vulnerability is network-exploitable, organizations should prioritize patching immediately.
As of the latest update, there are no known public exploits or proofs of concept available. Organizations should remain vigilant and monitor for any emerging threats related to this vulnerability.
Vulnerability Details
The official description of the vulnerability states: 'Better Auth is an authentication and authorization library for TypeScript. Prior to 1.6.5, the clientPrivileges option documents a create action, but the OAuth client creation endpoints did not invoke the hook before persisting new clients. Deployments that configured clientPrivileges to restrict client registration were not actually restricted — any authenticated user could reach the create endpoints and register an OAuth client with attacker-chosen redirect URIs and metadata.'
The vulnerability has a CVSS score of 7.1, indicating high severity. The attack vector is network-based, with low complexity and low privileges required for exploitation. The integrity impact is high, while confidentiality and availability impacts are rated as none.
Technical Analysis
The root cause of this vulnerability lies in the failure of the OAuth client creation endpoints to invoke the clientPrivileges hook before persisting new clients. This means that configurations intended to restrict client registration were ineffective, allowing unauthorized users to register clients.
The attack vector is network-based, meaning attackers can exploit the vulnerability remotely. The attack complexity is low, requiring minimal effort to exploit. Privileges required are low, which implies that authenticated users can easily perform the exploit without administrative access. No user interaction is required, further simplifying the exploitation process.
The vulnerability impacts the integrity of the application, as unauthorized clients can potentially manipulate sensitive data or perform unauthorized actions. However, there is no confidentiality or availability impact, as the vulnerability does not affect the overall availability of the service.
Risk & Impact Analysis
Real-world deployment risk is significant, as any authenticated user can exploit this vulnerability to register malicious OAuth clients. This could lead to unauthorized access to sensitive information or functionality within applications leveraging the Better Auth library.
Organizations that utilize the Better Auth library should be aware of the blast radius potential, which can encompass all users and systems relying on backend services for authentication. Urgency assessment based on CVSS indicates that organizations should prioritize this vulnerability due to its high severity and potential impact.
Exploitation Status
Signal | Status |
|---|---|
Known Exploit | No |
Public PoC | No |
Actively Exploited | No |
Ransomware Use | No |
Affected Versions
The vulnerability affects all versions prior to vendor patch version 1.6.5. Organizations using earlier versions should upgrade immediately to mitigate risk.
Mitigation & Remediation
Organizations should implement the following measures to mitigate the risk associated with this vulnerability: penetration testing to assess security posture and validate that client registration is functioning as intended. Additionally, organizations should apply the latest security patches provided by Better Auth to ensure the vulnerability is addressed.
Detection Guidance
To detect exploitation attempts, organizations should monitor logs for unusual client registrations, particularly those with attacker-chosen redirect URIs. Behavioral anomalies related to OAuth client behavior should also be scrutinized for potential signs of exploitation.
AppSecure Threat Intelligence Insight
This vulnerability represents a critical lesson for developers and organizations using authentication libraries. Ensuring that configurations are enforced properly is paramount to maintaining secure client registrations. Security teams must continuously validate their security controls and implement a penetration testing methodology to cultivate a culture of proactive security awareness.
For organizations leveraging cloud infrastructure, adopting a cloud penetration testing approach can help identify similar vulnerabilities across distributed architectures.
Ultimately, the strategic takeaway is to actively engage in vulnerability assessments and security reviews to preemptively address weaknesses that could be exploited.
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

.webp)