Incorrect Authorization Affecting @better-auth/oauth-provider package, versions >=1.4.8-beta.7 <1.6.5>=1.7.0-beta.0 <1.7.0-beta.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.21% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Incorrect Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-BETTERAUTHOAUTHPROVIDER-16098425
  • published17 Apr 2026
  • disclosed16 Apr 2026
  • creditDaniel Müller

Introduced: 16 Apr 2026

CVE-2026-41427  (opens in a new tab)
CWE-863  (opens in a new tab)

How to fix?

Upgrade @better-auth/oauth-provider to version 1.6.5, 1.7.0-beta.2 or higher.

Overview

@better-auth/oauth-provider is an An oauth provider plugin for Better Auth

Affected versions of this package are vulnerable to Incorrect Authorization via the createOAuthClientEndpoint endpoint. An attacker can gain unauthorized access to register OAuth clients by bypassing the intended clientPrivileges authorization checks, allowing the creation of clients with attacker-controlled redirect URIs and metadata. This may lead to increased risk of phishing, social engineering, and abuse of trust in OAuth/OIDC flows.

CVSS Base Scores

version 4.0
version 3.1