SCA: security update for @better-auth/oauth-provider (GHSA-xr8f-h2gw-9xh6)

high Tenable Cloud Security Plugin ID 440910

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. This vulnerability is fixed in
1.6.5. (CVE-2026-41427)

Solution

Update the @better-auth/oauth-provider library and its related packages to version 1.6.5 or later.

See Also

https://github.com/advisories/GHSA-xr8f-h2gw-9xh6

Plugin Details

Severity: High

ID: 440910

Version: Revision 1.6

Type: Local

Family: SCA Checks

Published: 4/27/2026

Updated: 6/9/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.69

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5

Vector: CVSS2#AV:N/AC:L/Au:S/C:N/I:C/A:N

CVSS Score Source: CVE-2026-41427

CVSS v3

Risk Factor: Medium

Base Score: 6.5

Temporal Score: 5.7

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

Risk Factor: High

Base Score: 7.1

Threat Score: 4.9

Threat Vector: CVSS:4.0/E:U

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

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 4/16/2026

Vulnerability Publication Date: 4/16/2026

Reference Information

CVE: CVE-2026-41427

cwe: CWE-863