@better-auth/scim is vulnerable to Authorization Bypass
99
CVE Score
Critical
Authorization Bypass
The @better-auth/scim plugin uses the same logical provider ID for SCIM provider configuration and account ownership, and token issuance does not reject provider IDs already used by other account providers. A low-privileged authenticated user can mint a SCIM token whose provider ID collides with an existing SSO, SAML, OIDC, OAuth, or social provider, and the SCIM routes then resolve and act on accounts the token never provisioned, including a non-organization delete that removes the global user. The same write path drops the active attribute so deactivation requests succeed while the user stays active, and lets PUT and PATCH reassign a user's email without the uniqueness check or email-verification reset the create path enforces. The fix rejects colliding provider IDs, scopes deletes to the SCIM account link, models active to an enforced disabled state with session revocation, and enforces email uniqueness and verification reset on updates.
Upgrade the @better-auth/scim library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you enable the SCIM plugin and allow authenticated users to generate SCIM tokens.
1.4.0 - 1.6.21
Fixed in 1.6.22@better-auth/scim is vulnerable to Authorization Bypass in versions 1.4.0 - 1.6.21.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.