Description
better-auth versions before 1.6.11 fail to delete cached sessions when removing users via admin, anonymous, or SCIM endpoints when secondaryStorage is configured and storeSessionInDatabase is false. Attackers can reuse deleted user session tokens to maintain authentication for up to seven days after account deletion.
Published: 2026-08-01
Score: 5.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability in better‑auth versions prior to 1.6.11 allows stale sessions to persist after a user account is deleted. When secondaryStorage is configured and storeSessionInDatabase is false, the system fails to remove cached session tokens through admin, anonymous, or SCIM endpoints. As a result, an attacker can reuse a deleted user’s session token and maintain authenticated access for up to seven days, effectively impersonating the account without the original credentials.

Affected Systems

Affected systems are installations of better‑auth with versions earlier than 1.6.11 that have secondaryStorage enabled and storeSessionInDatabase set to false. The vulnerability is present in the oauth‑provider component and applies to configurations that use the node.js platform.

Risk and Exploitability

The CVSS score of 5.1 indicates moderate severity. No EPSS score is available, but the lack of exploitation in the KEV list suggests limited known attacks. The attack vector is likely via authorized admin or SCIM deletion requests, so an attacker with sufficient privileges can delete a user and then reuse the session. The risk is medium because it requires an initial privileged action but grants extended unauthorized access for up to a week after deletion.

Generated by OpenCVE AI on August 2, 2026 at 03:03 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade better‑auth to version 1.6.11 or later to ensure session tokens are deleted when a user is removed.
  • Ensure that storeSessionInDatabase is set to true if secondary storage is used, so sessions are stored and properly invalidated.
  • If an immediate upgrade is not possible, manually revoke all active sessions after user deletion to prevent reuse.

Generated by OpenCVE AI on August 2, 2026 at 03:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 01 Aug 2026 14:30:00 +0000

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

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

Type Values Removed Values Added
Description better-auth versions before 1.6.11 fail to delete cached sessions when removing users via admin, anonymous, or SCIM endpoints when secondaryStorage is configured and storeSessionInDatabase is false. Attackers can reuse deleted user session tokens to maintain authentication for up to seven days after account deletion.
Title better-auth Stale Sessions Persist After User Deletion
First Time appeared Better-auth
Better-auth better-auth\/oauth-provider
Weaknesses CWE-459
CPEs cpe:2.3:a:better-auth:better-auth\/oauth-provider:*:*:*:*:*:node.js:*:*
Vendors & Products Better-auth
Better-auth better-auth\/oauth-provider
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Better-auth Better-auth\/oauth-provider Better Auth
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-01T12:22:18.107Z

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

Link: CVE-2026-67334

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-02T03:15:03Z

Weaknesses