The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-41427

CVE-2026-41427: Better Auth Authentication Bypass Vulnerability

CVE-2026-41427 is an authentication bypass flaw in Better Auth that allows unauthorized OAuth client registration despite configured restrictions. This article covers technical details, affected versions, and mitigation.

Published: April 30, 2026

CVE-2026-41427 Overview

CVE-2026-41427 is an Authorization Bypass vulnerability in Better Auth, an authentication and authorization library for TypeScript. Prior to version 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. This flaw allowed any authenticated user to bypass configured client registration restrictions and register OAuth clients with attacker-chosen redirect URIs and metadata.

Critical Impact

Deployments relying on clientPrivileges to restrict OAuth client registration were completely unprotected, enabling authenticated attackers to create malicious OAuth clients with arbitrary redirect URIs for credential theft or phishing attacks.

Affected Products

  • Better Auth versions prior to 1.6.5
  • Applications using Better Auth's OAuth client registration functionality
  • Deployments configured with clientPrivileges restrictions

Discovery Timeline

  • 2026-04-24 - CVE-2026-41427 published to NVD
  • 2026-04-27 - Last updated in NVD database

Technical Details for CVE-2026-41427

Vulnerability Analysis

This vulnerability stems from CWE-863 (Incorrect Authorization), where the Better Auth library failed to properly enforce authorization checks during OAuth client registration. The clientPrivileges configuration option was designed to allow administrators to restrict which users could create OAuth clients, but the underlying implementation did not actually call the authorization hook before saving new client records to the database.

The impact of this vulnerability is significant for multi-tenant deployments or environments where OAuth client registration should be limited to administrators only. An attacker with basic authenticated access could leverage this flaw to register rogue OAuth clients, potentially setting up redirect URIs pointing to attacker-controlled servers to harvest authorization codes or access tokens from legitimate users.

Root Cause

The root cause is a missing authorization check in the OAuth client creation endpoint. While the clientPrivileges option was documented and accepted by the configuration parser, the create action hook was never invoked in the request handling pipeline before persisting new OAuth client records. This represents a disconnect between the documented security model and the actual implementation, leaving deployments with a false sense of security.

Attack Vector

The attack is network-based and requires low-privileged authenticated access. An attacker would:

  1. Authenticate to the target application using any valid user account
  2. Send a direct request to the OAuth client creation endpoint
  3. Include attacker-controlled values for redirect_uri and other client metadata
  4. The server persists the OAuth client without verifying authorization
  5. The attacker can then use the malicious client to initiate OAuth flows and redirect victims to capture tokens

The vulnerability mechanism involves the OAuth client registration endpoint bypassing the clientPrivileges authorization hook. When an authenticated user submits a request to create a new OAuth client, the server should invoke the configured clientPrivileges hook to verify the user has permission to perform the create action. However, the vulnerable implementation persists the client record directly to the database without this verification step. See the GitHub Security Advisory for additional technical details.

Detection Methods for CVE-2026-41427

Indicators of Compromise

  • Unexpected OAuth client registrations in the database from non-administrative users
  • OAuth clients with redirect URIs pointing to external or suspicious domains
  • Authentication logs showing token grants to unrecognized client IDs
  • Unusual patterns of client creation requests from standard user accounts

Detection Strategies

  • Monitor OAuth client creation events and alert on registrations by non-privileged users
  • Audit existing OAuth clients for redirect URIs pointing to external domains
  • Review application logs for access patterns to client registration endpoints
  • Implement application-level logging to track all OAuth client CRUD operations

Monitoring Recommendations

  • Enable detailed logging for all OAuth-related endpoints in Better Auth
  • Set up alerts for new OAuth client registrations outside of administrative workflows
  • Periodically audit the OAuth client database table for unauthorized entries
  • Monitor for authentication flows involving unknown or recently created client IDs

How to Mitigate CVE-2026-41427

Immediate Actions Required

  • Upgrade Better Auth to version 1.6.5 or later immediately
  • Audit existing OAuth clients and remove any unauthorized registrations
  • Review authentication logs for evidence of exploitation
  • Notify users if suspicious OAuth clients may have captured their tokens

Patch Information

The vulnerability is fixed in Better Auth version 1.6.5. The patch ensures that the clientPrivileges authorization hook is properly invoked before persisting new OAuth client records, enforcing the documented access control model. Organizations should update their dependencies to this version or later. For additional details, see the GitHub Security Advisory.

Workarounds

  • Implement network-level access controls to restrict OAuth client registration endpoints to trusted IP ranges
  • Add application middleware to validate user permissions before forwarding requests to client creation endpoints
  • Temporarily disable OAuth client registration functionality until the patch can be applied
  • Deploy a reverse proxy rule to block unauthenticated or non-admin access to the registration endpoint
bash
# Example: Update Better Auth to patched version
npm update better-auth@1.6.5

# Verify installed version
npm list better-auth

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechBetter Auth

  • SeverityHIGH

  • CVSS Score7.1

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-863
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2025-61928: Better Auth API Key Auth Bypass Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English