---
id: CVE-2026-88863
title: >-
  capgo.app (npm package `capgo`) through version 12.207.1 does not compare the
  caller's role rank against the requested role in the validateInvite() function
  of supabase/functions/_backend/private/invite_new_user_to_org.ts
summary: >-
  capgo.app (npm package `capgo`) through version 12.207.1 does not compare the
  caller's role rank against the requested role in the validateInvite() function
  of supabase/functions/_backend/private/invite_new_user_to_org.ts. The POST
  /priv…
severity: high
cvss: 8.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N'
cwe:
  - CWE-269
vendor: Cap-go
product: capgo.app
affected:
  - capgo.app <= 12.207.1
published: '2026-09-10'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T15:17:56.793'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-88863'
references:
  - url: >-
      https://github.com/Cap-go/capgo.app/security/advisories/GHSA-7g7p-fxx8-4wm8
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/capgo-app-through-12.207.1-privilege-escalation-via-invite-new-user-to-org
    label: disclosure@vulncheck.com
tags:
  - nvd
  - cve.org
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-10T14:18:29.898602Z'
ingestedAt: '2026-09-10T13:50:37.334Z'
epss: 0.00386
epssPercentile: 0.29823
---

## Overview

capgo.app (npm package `capgo`) through version 12.207.1 does not compare the caller's role rank against the requested role in the validateInvite() function of supabase/functions/_backend/private/invite_new_user_to_org.ts. The POST /private/invite_new_user_to_org endpoint only requires the org.update_user_roles permission for org_super_admin invitations, so an authenticated user holding only the org.invite_user permission (e.g., an org_member) can invite an external user as org_admin or org_billing_admin. When the invited account accepts the invitation via POST /private/accept_invitation, ensureOrgMembership creates the role binding using the Supabase service-role key, which bypasses the prevent_role_binding_priority_escalation and check_org_user_privileges database triggers. This allows privilege escalation resulting in full administrative control over the organization's apps, channels, members, and billing. The issue is addressed by pull request #3096, which compares the inviter's rank before permitting elevated invitations.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
