SCIM
better-auth SCIM 1.4.0-beta.27 before 1.6.22 Account Takeover via Provider-ID Collision
@better-auth/scim (a better-auth plugin) versions >= 1.4.0-beta.27 through <= 1.6.21 and >= 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).
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1.4.0-beta.27, < 1.6.22
Fixed in 1.6.22
- >= 1.7.0-beta.0, < 1.7.0-beta.10
Fixed in 1.7.0-beta.10
Mitigation
Upgrade scim to 1.6.22 or later.
Upgrade scim to 1.7.0-beta.10 or later.
References
- Vendor advisory github.com/better-auth/better-auth/security/ad…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.