CVE-2026-134318 Details
Description
better-auth 1.5.5 before 1.7.16 and 1.8.0-beta.0 before 1.8.0-beta.5 contains a privilege escalation vulnerability in the organization plugin, where the creator role check compares the raw invitation role string while later checks trim it. Admins or other non-creator roles that can invite can submit a padded role such as " owner" that becomes owner on acceptance, allowing deletion of the organization and removal of original owners.
A privilege escalation vulnerability has been identified in the better-auth organization plugin, affecting versions 1.5.5 prior to 1.7.16 and 1.8.0-beta.0 prior to 1.8.0-beta.5. The vulnerability arises because the creator role check compares the raw invitation role string, while subsequent checks trim it. This discrepancy allows admins or other non-creator roles that can send invitations to submit a padded role, such as ' owner', which is accepted as 'owner' upon acceptance of the invitation. Consequently, the newly appointed owner can delete the organization and remove original owners.
Users can upgrade to better-auth version 1.7.16 or 1.8.0-beta.5. After upgrading, invitation roles are properly trimmed and validated, and roles with leading or trailing whitespace are rejected. It is also recommended to audit existing invitations and memberships for role values that could be manipulated and to remove the invite permission from all roles except the creator role.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Nov 21, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-180 | Incorrect Behavior Order: Validate Before Canonicalize | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| better-auth | >= 1.5.5, < 1.7.16 (semver) >= 1.8.0-beta.0, < 1.8.0-beta.5 (semver) |
CPE
Remediation
| |
Change History
1 change record found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 21, 2026 | New CVE Received | [email protected] |
Volerion