Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @better-auth/oauth-provider
  4. ›
  5. CVE-2026-41427

CVE-2026-41427: OAuth 2.1 Provider: Unprivileged users can register OAuth clients

April 16, 2026 (updated April 27, 2026)

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.

Non-create operations (read, list, update, delete, rotate) enforced the hook correctly. Only the create path was missing the check.

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
  • nvd.nist.gov/vuln/detail/CVE-2026-41427

Code Behaviors & Features

Detect and mitigate CVE-2026-41427 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

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/CVE-2026-41427.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 09 May 2026 12:18:26 +0000.