CVE-2026-134318: better-auth · Incorrect Behavior Order: Validate Before Canonicalize
Affects better-authSource CVE Database V5
Not known to be exploited · CVSS 6.9 Medium : upgrade to 1.7.16 when convenient.
Data as of 21 Nov 2026, 17:15 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 6.9 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 4.9 |
- Patch
- Available – fixed in 1.7.16, 1.8.0-beta.5
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 21 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 20 Nov 2026.
What to do
Upgrade better-auth to 1.7.16; better-auth to 1.8.0-beta.5; better-auth to 1.8.0-beta.5 or 1.7.16.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| better-authbetter-auth | Affected
| Fixed in
|
| better-authbetter-auth | Affected
| Fixed in
|
npmbetter-authpkg:npm/better-authOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Apply the official fixes by upgrading better-auth to version 1.7.16 or later, or 1.8.0-beta.5 or later. These versions correct the role string validation to prevent privilege escalation. No additional mitigation is required once patched.
Description
CVE-2026-134318 is a privilege escalation vulnerability in better-auth's organization plugin affecting versions >=1.5.5 <1.7.16 and >=1.8.0-beta.0 <1.8.0-beta.5. The flaw arises because the creator role check compares the raw invitation role string without trimming, while later checks trim the string. This allows an admin or other non-creator role with invite permissions to submit a padded role string such as " owner" which is accepted as "owner" upon invitation acceptance. Exploitation can lead to unauthorized ownership privileges, enabling deletion of the organization and removal of original owners. The issue has a CVSS 4.0 score of 6.9 (medium severity) and was fixed in versions 1.7.16 and 1.8.0-beta.5.