CVE-2026-67334

better-auth Stale Sessions Persist After User Deletion

Published Aug 1, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Better-auth better Auth
Vendors & Products Better-auth better Auth
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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 8, 2026, 3:24 PM
Reserved
Jul 29, 2026, 1:07 PM
Status
Deferred
Published
Aug 1, 2026, 1:17 PM
Modified
Oct 8, 2026, 4:17 PM