Operation on a Resource after Expiration or Release Affecting @better-auth/scim package, versions >=1.6.0 <1.6.11


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.2% (10th 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 IDSNYK-JS-BETTERAUTHSCIM-17889824
  • published8 Jul 2026
  • disclosed7 Jul 2026
  • creditiruizsalinas

Introduced: 7 Jul 2026

CVE-2026-67334  (opens in a new tab)
CWE-459  (opens in a new tab)
CWE-613  (opens in a new tab)
CWE-672  (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 Operation on a Resource after Expiration or Release in the deleteUser method when secondaryStorage is configured and session.storeSessionInDatabase is unset or set to false. An attacker can retain access to resources and perform actions as a deleted user by using a valid session token that remains active until its TTL expires.

Note: This is only exploitable if secondaryStorage is enabled and session.storeSessionInDatabase is not set to true.

Workaround

This vulnerability can be mitigated by setting session.storeSessionInDatabase: true in the configuration, or by explicitly revoking user sessions in code after user deletion.

CVSS Base Scores

version 4.0
version 3.1