Skip to main content

better-auth SCIM CVE-2026-67331

| EUVDEUVD-2026-51846 HIGH
Authorization Bypass Through User-Controlled Key (CWE-639)
2026-08-01 VulnCheck GHSA-gj37-5j8h-j367
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to application with valid credentials
  2. Delivery
    Identify or enumerate non-org SCIM provider IDs
  3. Exploit
    Issue HTTP request to management token-regeneration endpoint for target provider
  4. Execution
    Receive attacker-controlled SCIM bearer token
  5. Persist
    Use token to authenticate to SCIM API routes
  6. Impact
    Read or manipulate directory provisioning data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Object-level authorization, IDOR prevention
Exploitation Conditions

Exploitation requires all of the following conditions to hold simultaneously: the target application must have the @better-auth/scim plugin installed and registered (plugins: [scim()]); at least one non-organization (personal) SCIM provider must have been created - organization-scoped providers (those created with an organizationId) are not affected because they enforce organization membership separately; the deployment must have more than one authenticated user account so that cross-user targeting is possible; and the providerOwnership option must not have been explicitly set to { enabled: true }, which is the default. Exploitation is limited to authenticated users only (PR:L in CVSS 4.0 terms) - unauthenticated access to the management endpoints is not possible. The attack cannot reach organization-scoped providers or deployments with a single user.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:L) scores 8.7, reflecting network accessibility with no complexity or configuration prerequisites beyond holding a valid user session. The high confidentiality and integrity scores are appropriate: an attacker can exfiltrate provider metadata, rotate bearer tokens, and effectively hijack SCIM provisioning flows. The low availability component reflects legitimate token invalidation as a side effect. No EPSS data was provided in the input and no KEV listing is present, suggesting exploitation is not yet confirmed at scale. However, the risk is elevated by two factors: the 1.6.x stable release line remains unpatched (only a pre-release beta carries the fix), and the vulnerable code path requires only a standard authenticated session - no elevated privileges, no special role. This is a real priority for any multi-tenant deployment using non-org SCIM providers; the gap between high CVSS signal and absent KEV/EPSS data is consistent with a newly disclosed vulnerability rather than a low-risk finding.

Exploit ScenarioDerived

An authenticated user on a multi-tenant application enumerates or guesses the provider ID of another user's non-org SCIM provider (provider IDs may be sequential or predictable), then calls the SCIM management token-regeneration endpoint with no additional credentials. The endpoint returns a fresh bearer token controlled by the attacker, while the legitimate owner's token is immediately invalidated, disrupting any active SCIM provisioning. The attacker then authenticates to the SCIM API using this token and can read, modify, or delete directory entries. No public exploit code is confirmed, but the attack requires only standard HTTP requests to the management API.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 01, 2026

Authorization bypass in @better-auth/scim versions 1.5.0 through 1.7.0-beta.3 allows any authenticated user to fully take over another user's non-organization SCIM provider by exploiting a missing ownership binding. The root flaw (CWE-639) means provider rows are created without a userId by default, causing the access check to pass silently for any caller. An attacker with a valid session can regenerate a victim's SCIM bearer token, invalidating the legitimate token and authenticating to SCIM API routes with the attacker-controlled credential. No public exploit or KEV listing is confirmed at time of analysis, but the CVSS 4.0 score of 8.7 reflects the low exploitation complexity for any authenticated user.

RemediationAI

The primary fix is upgrading @better-auth/scim to version 1.7.0-beta.4, which makes owner binding mandatory and removes the providerOwnership opt-in, adding a permanent scimProvider.userId column. This is a breaking change: after upgrading, run the schema migration with npx auth migrate. Providers created before the upgrade will have no userId and become unreachable through management endpoints; reclaim them directly at the database level by setting the userId column. The 1.6.x stable line is not patched and has no confirmed release timeline for a backport. Developers who cannot upgrade to the beta may apply the workaround of explicitly setting providerOwnership: { enabled: true } in the plugin configuration, which activates the ownership check and binds new providers to their creator - but pre-existing provider rows with no userId will still require a manual database fix. Restricting the SCIM management endpoints to internal networks or specific authenticated roles provides an additional compensating control, at the cost of reducing provider self-service capabilities. Full advisory: https://github.com/better-auth/better-auth/security/advisories/GHSA-j8v8-g9cx-5qf4.

Affected VersionsENISA

scim 1.5.0 <1.7.0-beta.4

Affected Packages

npm @better-auth/scim fix: 1.7.0-beta.4
euvd scim fix: 1.7.0-beta.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The @better-auth/scim plugin (CPE: cpe:2.3:a:better-auth:scim:*:*:*:*:*:*:*:*) implements the SCIM 2.0 provisioning protocol for the better-auth JavaScript authentication framework. The vulnerability is classified as CWE-639 (Authorization Through User-Controlled Key), an IDOR-family weakness. Provider ownership is tracked via an opt-in providerOwnership flag and a scimProvider.userId column, both disabled by default. The access control guard evaluates provider.userId && provider.userId !== userId - when userId is null (the default for non-org providers), the first operand is falsy and the condition short-circuits, granting access to any authenticated caller regardless of actual ownership. Organization-scoped providers are not affected because they enforce organization membership and role separately. The flaw spans all SCIM management operations: metadata reads, connection listing, token generation and regeneration, and connection deletion.

Know when Scim gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N
vuln.today AI 8.3 HIGH

Network-accessible with low privilege (valid session only); high C/I from token hijack and provider takeover; low A from legitimate token invalidation.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Aug 01, 2026 - 13:01 EUVD
CVE Published
Aug 01, 2026 - 12:22 cve.org
HIGH 8.7

DescriptionCVE.org

better-auth SCIM versions from 1.5.0 before 1.7.0-beta.4 fail to bind non-organization SCIM providers to their creator by default, allowing authenticated users to manage other users' providers. Attackers can regenerate SCIM bearer tokens, invalidate legitimate tokens, and authenticate to SCIM API routes with the attacker-controlled token.

Executive ViewAI

Why It Matters

Organizations using @better-auth/scim versions 1.5.0 through 1.7.0-beta.3 face elevated identity and access management risk from an authorization bypass that allows users to gain control of other users' SCIM providers and issue fraudulent authentication tokens. Impacts include compromised identity federation, single sign-on disruption, and potential lateral movement across connected systems. No public exploit identified at time of analysis, but the low exploitation complexity and CVSS 8.7 severity require urgent remediation.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 85% exploitable
Prevalence
Low
newer JS auth library, enterprise SCIM plugin, limited production footprint
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy