What is CVE-2026-134318?
CVE-2026-134318 is a medium-severity privilege escalation vulnerability in better-auth, published on 21 Nov 2026. An attacker needs administrator access to exploit it, with no action from the victim.
Official 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.
Weakness: CWE-180
How severe is CVE-2026-134318?
CVE-2026-134318 scores 6.9 out of 10 under CVSS 4.0, which is medium severity. It was scored by VulnCheck.
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- High
- User interaction
- None
- Confidentiality
- None
- Integrity
- High
- Availability
- None
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Which versions are affected by CVE-2026-134318?
2 open source packages ship an affected version, including better-auth.
An affected version is only exploitable if your software uses the vulnerable function or option. Many projects that include it are not exposed.
| Package | Affected | Fixed in |
|---|---|---|
better-auth npmpkg:npm/better-auth | From 1.5.5 | 1.7.16 |
better-auth npmpkg:npm/better-auth | From 1.8.0-beta.0 | 1.8.0-beta.5 |
How do I fix CVE-2026-134318?
Upgrade better-auth to a fixed version for your release line: 1.8.0-beta.5 or 1.7.16.
Upgrade, and run services with the fewest rights they need. More about Privilege escalation.
Is CVE-2026-134318 being exploited?
There is no known exploitation of CVE-2026-134318 in the wild and no public exploit code.
Sources
Also known as GHSA-8p69-w5rc-pqcf, GHSA-c85h-5mrr-mgx4.