{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-41427","id":"CVE-2026-41427","title":"Better Auth OAuth 2.1 Provider: Unprivileged users can register OAuth clients","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 endpo","descriptionLong":"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.","published":"2026-04-24T19:23:20.161Z","updated":"2026-10-28T02:30:58.034090319Z","reserved":"2026-04-20T15:32:33.814Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":7.1,"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","rating":"high","source":"GitHub_M"},"metrics":[{"version":"4.0","score":7.1,"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","rating":"high","source":"GitHub_M"},{"version":"4.0","score":7.1,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"high","source":"github.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"vector":"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","rating":"high","source":"GitHub"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","rating":"medium","source":"NVD"}],"rating":"high","products":["better-auth","better-auth oauth-provider"],"affectedProducts":[{"vendor":"better-auth","product":"better-auth","defaultStatus":null,"versions":[{"version":">= 1.4.8-beta.7, < 1.6.5","status":"affected"},{"version":">= 1.7.0-beta.0, <= 1.7.0-beta.1","status":"affected"}],"platforms":[]},{"vendor":"better-auth","product":"oauth-provider","defaultStatus":null,"versions":[{"version":">= 1.4.8-beta.7, < 1.6.5","status":"affected"},{"version":">= 1.7.0-beta.0, <= 1.7.0-beta.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"@better-auth/oauth-provider","purl":"pkg:npm/%40better-auth/oauth-provider","ranges":[">=1.4.8-beta.7 <1.6.5",">=1.7.0-beta.0 <=1.7.0-beta.1"],"fixed":["1.6.5"],"advisory":"GHSA-xr8f-h2gw-9xh6"}],"cwes":["CWE-863"],"aliases":["GHSA-xr8f-h2gw-9xh6"],"references":[{"url":"https://github.com/better-auth/better-auth/security/advisories/GHSA-xr8f-h2gw-9xh6","tags":["x_refsource_CONFIRM","Mitigation","Vendor Advisory","advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41427.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41427","tags":["advisory"]},{"url":"https://github.com/better-auth/better-auth","tags":["package"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00212,"epssPercentile":0.1158,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-41427","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41427","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-41427","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-xr8f-h2gw-9xh6","ok":true,"note":"GHSA-xr8f-h2gw-9xh6"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-41427","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}