# CVE-2026-67330: better-auth SCIM authorization bypass via provider ID collision

Source: https://junglewise.ai/threats/cve-2026-67330-better-auth-scim-authorization-bypass-via-provider-id-collision  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-08-01. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-67330 · Severity: critical · CVSS 9.9 · Published 2026-08-01

@better-auth/scim is a plugin that manages user provisioning and account linking for the better-auth authentication framework. A vulnerability in SCIM token generation allowed authenticated users to create tokens using provider IDs that matched existing account providers (SSO, SAML, OIDC, social providers), enabling them to gain unauthorized access to, modify, or delete user accounts and sessions they did not own. An attacker with basic authenticated access could take over arbitrary user accounts, reset emails, or disable users enterprise-wide.

Vendors: [Better-Auth](https://junglewise.ai/threats/vendors/better-auth).

## Quick answers

**Is CVE-2026-67330 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-67330 being exploited in the wild.

**How severe is CVE-2026-67330?** Critical severity, with a CVSS score of 9.9, published 1 August 2026.

**Which products and versions are affected?** Better-Auth Scim >=1.4.0-beta.27 through <=1.6.21 and >=1.7.0-beta.0 through <=1.7.0-beta.9.

**Is there a fix for CVE-2026-67330?** A patch was published on 2026-08-01: Patches released: 1.6.22, 1.7.0-beta.10 (1.7.0-rc.0) Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-67330 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-67330?** Check whether you run Better-Auth Scim at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability is an authorization bypass in SCIM token issuance and routing (CWE-20: Improper Input Validation). The root cause: SCIM token issuance did not validate that the provider ID in a new SCIM token was unique or different from existing account provider namespaces (SSO, SAML, OIDC, OAuth, social). SCIM user routes then queried accounts by providerId without verifying that the token actually owned those accounts, treating colliding provider IDs as authorization keys. An authenticated attacker could mint a SCIM token with a provider ID matching an existing provider, then use SCIM routes to list, read, update (including email changes without uniqueness checks), and delete accounts under that namespace. The attack requires: (1) @better-auth/scim plugin enabled, (2) authenticated user able to generate SCIM tokens (default policy affected), (3) existing SSO/SAML/OIDC/OAuth/social provider accounts to collide with. Impact includes account takeover, session hijacking, unauthorized email changes, and user deprovisioning. Fixed in versions 1.6.22, 1.7.0-beta.10, and 1.7.0-rc.0.

## Affected products

- better-auth SCIM >=1.4.0-beta.27 through <=1.6.21 and >=1.7.0-beta.0 through <=1.7.0-beta.9

## Timeline

- 2026-06-26: disclosed: GitHub Security Advisory GHSA-rjg6-39jm-rgg4 published
- 2026-08-01: advisory: NVD CVE-2026-67330 published
- 2026-08-01: patched: Patches released: 1.6.22, 1.7.0-beta.10 (1.7.0-rc.0)

## References

- [https://github.com/better-auth/better-auth/security/advisories/GHSA-rjg6-39jm-rgg4](https://github.com/better-auth/better-auth/security/advisories/GHSA-rjg6-39jm-rgg4)
- [https://www.vulncheck.com/advisories/better-auth-scim-beta-27-through-account-takeover-via-provider-id-collision](https://www.vulncheck.com/advisories/better-auth-scim-beta-27-through-account-takeover-via-provider-id-collision)
