CVE-2026-67330: Improper Input Validation in better-auth scim
A critical authorization bypass vulnerability exists in @better-auth/scim plugin versions 1.4.0-beta.27 through 1.6.21 and 1.7.0-beta.0 through 1.7.0-beta.9. The issue arises because SCIM token issuance does not reject provider IDs already used by other authentication providers, allowing an authenticated user to mint a SCIM token with a colliding provider ID. This enables unauthorized listing, reading, updating, and deleting of global user accounts and sessions, leading to account takeover and unauthorized deprovisioning. The vulnerability is fixed in versions 1.6.22 and 1.7.0-beta.10 (1.7.0-rc.0).
AI Analysis
Technical Summary
@better-auth/scim versions >=1.4.0-beta.27 <=1.6.21 and >=1.7.0-beta.0 <=1.7.0-beta.9 contain an authorization bypass due to improper input validation on SCIM token issuance. The SCIM token issuance process fails to reject provider IDs that collide with existing SSO, SAML, OIDC, OAuth, or social account providers. Because the same logical provider ID is used for both SCIM provider configuration and account ownership, an authenticated user can mint a SCIM token with a provider ID that conflicts with an existing provider namespace. This causes SCIM user routes to resolve account data for accounts the token never provisioned, allowing unauthorized listing, reading, updating (including rewriting global profile/email fields without uniqueness checks), and deleting of user accounts and sessions. The impact includes account takeover and unauthorized deprovisioning. The issue is fixed in versions 1.6.22 and 1.7.0-beta.10 (1.7.0-rc.0).
Potential Impact
An authenticated user can exploit this vulnerability to bypass authorization controls, allowing them to list, read, update, and delete global user accounts and sessions that they do not own. This can lead to account takeover and unauthorized deprovisioning of user accounts, compromising user data integrity and availability.
Mitigation Recommendations
Upgrade to @better-auth/scim version 1.6.22 or later, or 1.7.0-beta.10 (1.7.0-rc.0) or later, where this vulnerability is fixed. Patch status is confirmed by the vendor's versioning information. No other mitigations are indicated.
CVE-2026-67330: Improper Input Validation in better-auth scim
Description
A critical authorization bypass vulnerability exists in @better-auth/scim plugin versions 1.4.0-beta.27 through 1.6.21 and 1.7.0-beta.0 through 1.7.0-beta.9. The issue arises because SCIM token issuance does not reject provider IDs already used by other authentication providers, allowing an authenticated user to mint a SCIM token with a colliding provider ID. This enables unauthorized listing, reading, updating, and deleting of global user accounts and sessions, leading to account takeover and unauthorized deprovisioning. The vulnerability is fixed in versions 1.6.22 and 1.7.0-beta.10 (1.7.0-rc.0).
CVSS v4.0
Score 9.4critical
Affected software
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
@better-auth/scim versions >=1.4.0-beta.27 <=1.6.21 and >=1.7.0-beta.0 <=1.7.0-beta.9 contain an authorization bypass due to improper input validation on SCIM token issuance. The SCIM token issuance process fails to reject provider IDs that collide with existing SSO, SAML, OIDC, OAuth, or social account providers. Because the same logical provider ID is used for both SCIM provider configuration and account ownership, an authenticated user can mint a SCIM token with a provider ID that conflicts with an existing provider namespace. This causes SCIM user routes to resolve account data for accounts the token never provisioned, allowing unauthorized listing, reading, updating (including rewriting global profile/email fields without uniqueness checks), and deleting of user accounts and sessions. The impact includes account takeover and unauthorized deprovisioning. The issue is fixed in versions 1.6.22 and 1.7.0-beta.10 (1.7.0-rc.0).
Potential Impact
An authenticated user can exploit this vulnerability to bypass authorization controls, allowing them to list, read, update, and delete global user accounts and sessions that they do not own. This can lead to account takeover and unauthorized deprovisioning of user accounts, compromising user data integrity and availability.
Mitigation Recommendations
Upgrade to @better-auth/scim version 1.6.22 or later, or 1.7.0-beta.10 (1.7.0-rc.0) or later, where this vulnerability is fixed. Patch status is confirmed by the vendor's versioning information. No other mitigations are indicated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-07-29T13:07:47.015Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a6deb26bf32cb7a34c1fc25
Added to database: 08/01/2026, 12:48:38 UTC
Last enriched: 08/01/2026, 13:03:35 UTC
Last updated: 08/01/2026, 14:53:19 UTC
Views: 13
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.