CVE-2026-134318
Deferred Deferred - Pending Action

Privilege Escalation in Better-Auth via Padded Role Injection

Vulnerability report for CVE-2026-134318, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-21

Last updated on: 2026-11-21

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-21
Last Modified
2026-11-21
Generated
2026-11-21
AI Q&A
2026-11-21
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 5 associated CPEs
Vendor Product Version / Range
better-auth better-auth to 1.7.16 (exc)
better-auth better-auth to 1.8.0-beta.0 (exc)
better-auth better-auth From 1.8.0-beta.5 (exc)
better-auth better-auth From 1.5.5 (inc) to 1.7.16 (exc)
better-auth better-auth From 1.8.0-beta.0 (inc) to 1.8.0-beta.5 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-180 The product validates input before it is canonicalized, which prevents the product from detecting data that becomes invalid after the canonicalization step.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects the better-auth library versions 1.5.5 to 1.7.15 and 1.8.0-beta.0 to 1.8.0-beta.4. It involves the organization plugin where non-creator roles with invite permissions can exploit padded role strings. The system checks raw role strings before trimming whitespace, allowing attackers to submit roles like ' owner' which become 'owner' after trimming, granting elevated privileges.

Detection Guidance

Check for better-auth versions between 1.5.5 and 1.7.15 or 1.8.0-beta.0 and 1.8.0-beta.4. Audit organization invitations for padded role names with extra whitespace like ' owner'. Review logs for unauthorized organization deletions or owner removals.

Impact Analysis

If you use affected versions of better-auth, an attacker with invite privileges could escalate to owner status. This allows them to delete your organization or remove existing owners, potentially causing data loss or unauthorized access to organizational resources.

Compliance Impact

This vulnerability could lead to unauthorized access and privilege escalation, potentially violating data protection requirements under GDPR and HIPAA. Unauthorized role changes may result in improper access to sensitive data, impacting compliance with access control and audit requirements.

Mitigation Strategies

Upgrade better-auth to version 1.7.16 or 1.8.0-beta.5 or later. Remove invite permissions from non-creator roles. Audit existing invitations for padded role names and revoke suspicious ones. Monitor for unauthorized changes to organization ownership.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-134318. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...