CVE-2026-67330: Improper Input Validation in better-auth scim
@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).
AI Analysis
Technical Summary
The vulnerability in better-auth scim arises from improper input validation where SCIM token issuance does not reject provider IDs already assigned to existing identity providers (SSO, SAML, OIDC, OAuth, social accounts). Because the same logical provider ID is used for both SCIM provider configuration and account ownership, an authenticated user can create a SCIM token with a colliding provider ID. This causes SCIM user routes to resolve account data for accounts the token never provisioned, allowing unauthorized access to list, read, update (including global profile and email fields without uniqueness checks), and delete user accounts and sessions. This results in account takeover and unauthorized deprovisioning. The issue is resolved in versions 1.6.22 and 1.7.0-beta.10 (1.7.0-rc.0).
Potential Impact
An authenticated user can bypass authorization controls by minting SCIM tokens with provider IDs that collide with existing identity providers, enabling unauthorized access to global user accounts and sessions. This includes the ability to list, read, update (including rewriting global profile and email fields without uniqueness checks), and delete accounts and sessions. The impact includes account takeover and unauthorized deprovisioning, representing a critical security risk.
Mitigation Recommendations
A fix is available in better-auth scim versions 1.6.22 and 1.7.0-beta.10 (1.7.0-rc.0). Users should upgrade to these versions or later to remediate this vulnerability. No vendor advisory content is provided to indicate alternative mitigations or temporary workarounds.
CVE-2026-67330: Improper Input Validation in better-auth scim
Description
@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).
CVSS v4.0
Score 9.4critical
Affected software
better-auth
scim
better-auth
scim
pkg:npm/@better-auth/scimRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in better-auth scim arises from improper input validation where SCIM token issuance does not reject provider IDs already assigned to existing identity providers (SSO, SAML, OIDC, OAuth, social accounts). Because the same logical provider ID is used for both SCIM provider configuration and account ownership, an authenticated user can create a SCIM token with a colliding provider ID. This causes SCIM user routes to resolve account data for accounts the token never provisioned, allowing unauthorized access to list, read, update (including global profile and email fields without uniqueness checks), and delete user accounts and sessions. This results in account takeover and unauthorized deprovisioning. The issue is resolved in versions 1.6.22 and 1.7.0-beta.10 (1.7.0-rc.0).
Potential Impact
An authenticated user can bypass authorization controls by minting SCIM tokens with provider IDs that collide with existing identity providers, enabling unauthorized access to global user accounts and sessions. This includes the ability to list, read, update (including rewriting global profile and email fields without uniqueness checks), and delete accounts and sessions. The impact includes account takeover and unauthorized deprovisioning, representing a critical security risk.
Mitigation Recommendations
A fix is available in better-auth scim versions 1.6.22 and 1.7.0-beta.10 (1.7.0-rc.0). Users should upgrade to these versions or later to remediate this vulnerability. No vendor advisory content is provided to indicate alternative mitigations or temporary workarounds.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-07-29T13:07:47.015Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a6deb26bf32cb7a34c1fc25
Added to database: 08/01/2026, 12:48:38 UTC
Last enriched: 08/08/2026, 14:32:42 UTC
Last updated: 09/15/2026, 22:01:36 UTC
Views: 77
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.