better-auth SCIM 1.4.0-beta.27 through 1.6.21 Account Takeover via Provider-ID Collision 漏洞概述 严重性: 严重 发布日期: 2026年8月1日 CVE编号: CVE-2026-67330 CWE编号: CWE-20 Improper Input Validation CVSS评分: 9.4 CVSS向量: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H 影响范围 受影响的版本: - scim >= 1.4.0-beta.27 - scim >= 1.7.0-beta.0 修复方案 修复版本: - 1.6.22 - 1.7.0-beta.10 (1.7.0-rc.0) 描述 @better-auth/scim (a better-auth plugin) versions >= 1.4.0-beta.27 through = 1.7.0-beta.0 through <= 1.7.0-beta.9 contain an authorization bypass. SCIM token issuance did not reject provider IDs already used by existing SSO, SAML, OIDC, generic OAuth, or social account providers, and the same logical provider ID was used for both SCIM provider configuration and account ownership. An authenticated user could mint a SCIM token whose provider ID collided with an existing provider namespace, causing SCIM user routes to resolve account rows the token never provisioned. This allowed listing, reading, updating (including rewriting global profile/email fields without uniqueness checks), and deleting global user accounts and sessions, resulting in account takeover and unauthorized deprovisioning. Fixed in 1.6.22 and 1.7.0-beta.10 (1.7.0-rc.0). 参考链接 GitHub Security Advisory