Missing Authorization Affecting @better-auth/scim package, versions >=1.5.0 <1.6.11


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.24% (16th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Missing Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-BETTERAUTHSCIM-17889830
  • published8 Jul 2026
  • disclosed7 Jul 2026
  • creditJvr2022 Jvr

Introduced: 7 Jul 2026

NewCVE-2026-67331  (opens in a new tab)
CWE-639  (opens in a new tab)
CWE-862  (opens in a new tab)

How to fix?

Upgrade @better-auth/scim to version 1.6.11 or higher.

Overview

@better-auth/scim is a SCIM plugin for Better Auth

Affected versions of this package are vulnerable to Missing Authorization in the management of non-organization SCIM providers when owner binding is not enforced. An attacker can gain unauthorized access to another user's provider, allowing them to read metadata, list connections, regenerate SCIM bearer tokens (invalidating the legitimate user's token), authenticate to SCIM API routes, manage provisioned users, and delete provider connections by sending crafted requests to the management endpoints.

Note: This is only exploitable if the plugin is configured with its default ownership settings, non-organization providers are used, and there is more than one authenticated user in the application.

Workaround

This vulnerability can be mitigated by enabling the providerOwnership option when registering the plugin and running the schema update, scoping every SCIM provider to an organization by always passing organizationId, or restricting access to the SCIM management endpoints at the edge while non-org providers remain ownerless.

CVSS Base Scores

version 4.0
version 3.1