Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @better-auth/oauth-provider
  4. ›
  5. GHSA-xr8f-h2gw-9xh6

GHSA-xr8f-h2gw-9xh6: OAuth 2.1 Provider: Unprivileged users can register OAuth clients

April 16, 2026

An authorization bypass in the OAuth provider allows any authenticated low-privilege user to create OAuth clients even when the deployment configures clientPrivileges to restrict client creation. The option contract explicitly includes a create action, but the create paths never invoke that callback, so applications that rely on clientPrivileges for RBAC can be silently misconfigured into allowing unauthorized client registration.

References

  • github.com/advisories/GHSA-xr8f-h2gw-9xh6
  • github.com/better-auth/better-auth
  • github.com/better-auth/better-auth/security/advisories/GHSA-xr8f-h2gw-9xh6

Code Behaviors & Features

Detect and mitigate GHSA-xr8f-h2gw-9xh6 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 1.4.8-beta.7 before 1.6.5, all versions starting from 1.7.0-beta.0 up to 1.7.0-beta.1

Fixed versions

  • 1.6.5

Solution

Upgrade to version 1.6.5 or above.

Impact 8.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-863: Incorrect Authorization

Source file

npm/@better-auth/oauth-provider/GHSA-xr8f-h2gw-9xh6.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:33 +0000.