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).
Published: 2026-08-01
Score: 9.4 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

This vulnerability allows an authenticated user to influence the creation of a SCIM token such that its provider ID clashes with an existing provider namespace. Because the same logical identifier is used for both the SCIM provider configuration and account ownership, the forged token can resolve to user accounts that were never provisioned by it. The attacker can enumerate, read, update (including overriding global profile and email fields without uniqueness checks), and delete those global accounts and their sessions. As a result, the attacker can take full control of user identities and disrupt legitimate service usage. The flaw is rooted in improper input validation and lack of uniqueness enforcement (CWE‑20).

Affected Systems

The software impacted is the better‑auth SCIM plugin. Versions from 1.4.0‑beta.27 through 1.6.21, and from 1.7.0‑beta.0 through 1.7.0‑beta.9 contain the flaw. The fix is available in 1.6.22 and 1.7.0‑beta.10 (notably 1.7.0‑rc.0).

Risk and Exploitability

The CVSS score of 9.4 denotes a very high severity. The EPSS score is not available, suggesting limited data on real‑world exploitation likelihood, but the lack of KEV listing indicates that known exploits have not been reported yet. The attack vector is authenticated internal exploitation where an actor holds the rights to mint SCIM tokens. The logical provider ID collision permits the attacker to map a token to a different account, giving them broad read/write/delete privileges and enabling account takeover and deprovisioning. Given the high CVSS and the significant impact, the vulnerability presents an urgent risk to any deployed system that relies on this plugin.

Generated by OpenCVE AI on August 3, 2026 at 09:38 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the better‑auth SCIM plugin to version 1.6.22 or later (or 1.7.0‑beta.10 or newer) where the provider-ID collision logic has been corrected.
  • Ensure that provider identifiers are globally unique across all authentication mechanisms (SSO, SAML, OIDC, OAuth, and social accounts) to prevent accidental collisions in future deployments.
  • Re‑generate any SCIM tokens that may have been minted with colliding provider IDs and revoke or replace them to eliminate lingering access vectors.

Generated by OpenCVE AI on August 3, 2026 at 09:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 03 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Sun, 02 Aug 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Better-auth
Better-auth scim
Vendors & Products Better-auth
Better-auth scim

Sat, 01 Aug 2026 12:45:00 +0000

Type Values Removed Values Added
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).
Title better-auth SCIM 1.4.0-beta.27 through 1.6.21 Account Takeover via Provider-ID Collision
Weaknesses CWE-20
References
Metrics cvssV3_1

{'score': 9.9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.4, 'vector': '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'}


Subscriptions

Better-auth Scim
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-03T15:38:15.885Z

Reserved: 2026-07-29T13:07:47.015Z

Link: CVE-2026-67330

cve-icon Vulnrichment

Updated: 2026-08-03T14:48:19.845Z

cve-icon NVD

Status : Received

Published: 2026-08-01T13:17:03.677

Modified: 2026-08-03T17:16:41.680

Link: CVE-2026-67330

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T09:45:04Z

Weaknesses
  • CWE-20

    Improper Input Validation