| Gói / sản phẩm | Phiên bản bị ảnh hưởng | Phiên bản đã vá |
|---|---|---|
| better-auth/oauth-provider | = 1.4.8= 1.7.0≥ 1.4.9, < 1.6.5 | 1.6.5 |
| @better-auth/oauth-provider | ≥ 1.4.8-beta.7, < 1.6.5≥ 1.7.0-beta.0, ≤ 1.7.0-beta.1 | 1.6.5 |
You're affected if all of the following are true:
If clientPrivileges is not configured, this bug has no security consequence for your deployment
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.
skip_consent become writable.Fixed in @better-auth/[email protected] Both create endpoints now call the clientPrivileges hook with action "create" before persisting the client record.
If you cannot upgrade immediately:
Bạn đang dùng một trong các sản phẩm này? Quét site để biết có đang lộ phiên bản có lỗ hổng không.
Quét site miễn phí