{"id":"CVE-2026-134318","state":"PUBLISHED","title":"better-auth 1.5.5 before 1.7.16 Privilege Escalation via Padded Invitation Role","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.","publishedAt":"2026-11-21T16:34:50.515Z","updatedAt":"2026-11-23T16:00:45.119Z","severity":{"score":6.9,"label":"Medium","version":"4.0","vector":"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","source":"VulnCheck"},"assigner":"VulnCheck","products":["better-auth better-auth"],"affected":[{"vendor":"better-auth","product":"better-auth","packageURL":"pkg:npm/better-auth","defaultStatus":"unaffected","versions":[{"version":"1.5.5","status":"affected","lessThan":"1.7.16","versionType":"semver"},{"version":"1.7.16","status":"unaffected","versionType":"semver"}]},{"vendor":"better-auth","product":"better-auth","packageURL":"pkg:npm/better-auth","defaultStatus":"unaffected","versions":[{"version":"1.8.0-beta.0","status":"affected","lessThan":"1.8.0-beta.5","versionType":"semver"},{"version":"1.8.0-beta.5","status":"unaffected","versionType":"semver"}]}],"references":["https://github.com/better-auth/better-auth/security/advisories/GHSA-c85h-5mrr-mgx4","https://www.vulncheck.com/advisories/better-auth-1.5.5-before-1.7.16-privilege-escalation-via-padded-invitation-role"],"weaknesses":["CWE-180"],"ingestedAt":"2026-11-23T16:04:06.286Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/134xxx/CVE-2026-134318.json","commit":"eddb0455bdb84c10576739243517248f223764f2","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-134318","state":"PUBLISHED","datePublished":"2026-11-21T16:34:50.515Z","dateUpdated":"2026-11-23T16:00:45.119Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-11-20T23:52:03.518Z"},"containers":{"cna":{"title":"better-auth 1.5.5 before 1.7.16 Privilege Escalation via Padded Invitation Role","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"better-auth","product":"better-auth","packageURL":"pkg:npm/better-auth","defaultStatus":"unaffected","versions":[{"version":"1.5.5","status":"affected","lessThan":"1.7.16","versionType":"semver"},{"version":"1.7.16","status":"unaffected","versionType":"semver"}]},{"vendor":"better-auth","product":"better-auth","packageURL":"pkg:npm/better-auth","defaultStatus":"unaffected","versions":[{"version":"1.8.0-beta.0","status":"affected","lessThan":"1.8.0-beta.5","versionType":"semver"},{"version":"1.8.0-beta.5","status":"unaffected","versionType":"semver"}]}],"references":[{"url":"https://github.com/better-auth/better-auth/security/advisories/GHSA-c85h-5mrr-mgx4","tags":["vendor-advisory"],"name":"GitHub Security Advisory (GHSA-c85h-5mrr-mgx4)"},{"url":"https://www.vulncheck.com/advisories/better-auth-1.5.5-before-1.7.16-privilege-escalation-via-padded-invitation-role","name":"VulnCheck Advisory: better-auth 1.5.5 before 1.7.16 Privilege Escalation via Padded Invitation Role","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"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","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"HIGH","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":6.9,"baseSeverity":"MEDIUM"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"HIGH","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"NONE","baseScore":4.9,"baseSeverity":"MEDIUM"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-180","lang":"en","description":"Incorrect Behavior Order: Validate Before Canonicalize","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-11-21T16:34:50.515Z"},"datePublic":"2026-11-03T00:00:00.000Z","cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:better-auth:better_auth:*:*:*:*:*:*:*:*","versionStartIncluding":"1.5.5","versionEndExcluding":"1.7.16"}]}]},{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:better-auth:better_auth:*:*:*:*:*:*:*:*","versionStartIncluding":"1.8.0-beta.0","versionEndExcluding":"1.8.0-beta.5"}]}]}],"credits":[{"lang":"en","value":"iabdullah215","type":"finder"},{"lang":"en","value":"0xaudron","type":"finder"}],"x_generator":{"engine":"vulncheck-endgame"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-23T16:00:35.873685Z","id":"CVE-2026-134318","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-23T16:00:45.119Z"}}]}}}