{"id":"CVE-2026-100623","published":"2026-09-26T14:16:43.293","lastModified":"2026-09-28T20:57:50.143","description":"Capgo (capgo.app) exposes the legacy membership table public.org_users directly through Supabase PostgREST. The table's row-level security policies \"Allow org admin to insert\" and \"Allow org admin to update\" only verify that the caller has admin rights in the target organization (public.check_min_rights('admin', ...)); they do not require a pending invitation in tmp_users, acceptance of an invite token via /private/accept_invitation, any action by the target user, or the membership/role-consistency and anti-escalation checks enforced by the RBAC role-binding path. As a result, an authenticated user who is an admin of an organization can INSERT or UPDATE org_users rows directly to add any existing public.users account as an active member of that organization with user_right=\"admin\", bypassing the invitation and role-assignment workflow entirely. In testing, an account with no prior access to the organization or its apps could, after such a direct insert, read the organization and app and pass check_min_rights. All versions are affected and no patch was available at the time of publication.","cvssScore":8.8,"cvssSeverity":"HIGH","cvssVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","cwes":["CWE-863"],"vendors":[],"products":[],"references":[{"url":"https://github.com/Cap-go/capgo.app/security/advisories/GHSA-w349-9mc3-8c5x","tags":[]},{"url":"https://www.vulncheck.com/advisories/capgo-authentication-bypass-via-direct-postgrest-org-users-table-write","tags":[]},{"url":"https://github.com/Cap-go/capgo.app/security/advisories/GHSA-w349-9mc3-8c5x","tags":[]}],"exploitRefs":[{"url":"https://github.com/Cap-go/capgo.app/security/advisories/GHSA-w349-9mc3-8c5x","tags":[]},{"url":"https://github.com/Cap-go/capgo.app/security/advisories/GHSA-w349-9mc3-8c5x","tags":[]}],"hasPoc":true,"ai":{"summary":"This flaw allows an authenticated admin to bypass the normal membership workflow and directly add any user as an admin in their organization, potentially granting unauthorized access.","exploitability":"Exploitation is relatively straightforward for an admin with write access to the org_users table, requiring only the ability to insert or update rows.","blast_radius":"If exploited, this could lead to unauthorized access and control over the organization's resources, including apps and data.","remediation":"Disable direct write access to the org_users table and enforce the existing invite and role-assignment workflow.","detection":"No reliable host or network indicator is derivable from the published description.","tags":["auth-bypass","rbac","web"],"model":"qwen2.5:7b-instruct","analyzedAt":"2026-09-30T09:02:55.878Z"}}