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

- Severity: High 7.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2026-04-16T22:44:27.000Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-xr8f-h2gw-9xh6
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- better-auth better-auth: >= 1.4.8-beta.7, < 1.6.5; >= 1.7.0-beta.0, <= 1.7.0-beta.1
- better-auth oauth-provider: >= 1.4.8-beta.7, < 1.6.5; >= 1.7.0-beta.0, <= 1.7.0-beta.1
- @better-auth/oauth-provider (npm): from 1.4.8-beta.7 before 1.6.5; from 1.7.0-beta.0 up to 1.7.0-beta.1
- better-auth better-auth/oauth-provider: from 1.4.9 before 1.6.5; 1.4.8; 1.7.0

## Every score

- GitHub_M: CVSS:4.0 7.1 High `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`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:N/SC:L/SI:H/SA:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/better-auth/better-auth/security/advisories/GHSA-xr8f-h2gw-9xh6> (mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41427> (advisory)
- <https://github.com/better-auth/better-auth> (package)

## Sources

- CVE List: [CVE-2026-41427](https://www.cve.org/CVERecord?id=CVE-2026-41427), CVE Terms of Use, modified 2026-04-27
- GitHub Advisory Database: [GHSA-xr8f-h2gw-9xh6](https://github.com/advisories/GHSA-xr8f-h2gw-9xh6), CC-BY-4.0, modified 2026-05-05
- NVD: [CVE-2026-41427](https://nvd.nist.gov/vuln/detail/CVE-2026-41427), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-41427 · Whole record: https://cve.day/CVE-2026-41427.json · Rebuilt by cve.day 2026-11-25T22:59:19.579Z
