Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-100616 Overview
CVE-2026-100616 is an authorization bypass in capgo.app, an over-the-air update platform for Capacitor apps. The flaw resides in the row-level security (RLS) UPDATE policy on the public.orgs table in Supabase. An authenticated organization admin holding only org.update_settings can modify the entire row, including the internal customer_id column that points to the organization's Stripe billing record. The official update endpoint restricts editable fields, but a direct PostgREST request bypasses that allowlist. This flaw maps to [CWE-863: Incorrect Authorization].
Critical Impact
An org admin without billing permission can null or corrupt the Stripe customer_id, causing plan and billing checks to fail and moving the organization into an unpaid or no-plan state.
Affected Products
- capgo.app (Cap-go/capgo.app repository)
- All versions prior to a fix (no patched version available at advisory time)
- Supabase backend deployments using the vulnerable public.orgs RLS UPDATE policy
Discovery Timeline
- 2026-09-26 - CVE-2026-100616 published to NVD
- 2026-09-30 - Last updated in NVD database
Technical Details for CVE-2026-100616
Vulnerability Analysis
The vulnerability stems from a mismatch between application-layer authorization and database-layer RLS enforcement. The official endpoint at supabase/functions/_backend/public/organization/put.ts allowlists a small set of editable settings fields and explicitly excludes customer_id. Separately, the private Stripe billing route requires the org.update_billing permission before touching billing state.
However, the RLS UPDATE policy on public.orgs grants any user holding org.update_settings the ability to update the entire row. Supabase exposes PostgREST directly to authenticated clients, so an attacker can send an UPDATE request straight to the database, bypassing the application allowlist entirely. The database policy becomes the only gate, and it does not restrict which columns the admin can modify.
Root Cause
The RLS UPDATE policy is written at row granularity rather than column granularity. It validates that the caller holds org.update_settings but places no restriction on which columns the UPDATE statement touches. The internal customer_id column — intended as a billing pointer managed by the Stripe route — is writable by any settings-level admin.
Attack Vector
An authenticated organization admin with the org.update_settings permission issues a PostgREST PATCH request against the orgs table targeting their organization row. The request sets customer_id to NULL or to an attacker-chosen value. Subsequent plan and billing checks that read orgs.customer_id fail to resolve a valid Stripe customer, and the organization is treated as unpaid or without a plan. No code examples are published in the advisory; see the GitHub Security Advisory and VulnCheck Advisory for additional context.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-100616
Indicators of Compromise
- Unexpected NULL or altered values in public.orgs.customer_id for organizations with active paid plans.
- Billing or plan-check code paths returning no-plan or unpaid status for organizations that previously resolved to a valid Stripe customer.
- PostgREST PATCH requests to the orgs endpoint originating from users without org.update_billing.
Detection Strategies
- Audit Supabase/PostgREST request logs for direct UPDATE/PATCH calls against the orgs table that include the customer_id column.
- Enable PostgreSQL audit logging on public.orgs and alert on UPDATE statements that modify customer_id outside of the Stripe billing service account.
- Compare current customer_id values against historical snapshots or Stripe-side records to identify drift.
Monitoring Recommendations
- Forward Supabase edge function logs and PostgREST access logs to a centralized data lake for continuous review.
- Alert when plan-check functions return downgraded status without a corresponding billing event from Stripe webhooks.
- Track per-user API call patterns for admins without org.update_billing touching billing-adjacent tables.
How to Mitigate CVE-2026-100616
Immediate Actions Required
- Tighten the RLS UPDATE policy on public.orgs so that customer_id can only be written by a privileged service role or by users holding org.update_billing.
- Revoke direct PostgREST write access to the orgs table from the authenticated role and route all updates through the vetted edge function.
- Snapshot current customer_id values and reconcile against Stripe to detect prior tampering.
Patch Information
At the time of the advisory, no patched version of capgo.app was available. Monitor the GitHub Security Advisory GHSA-qp5h-v7x3-53cq for release updates and apply the fix immediately when published.
Workarounds
- Replace the row-level RLS UPDATE policy with a column-level policy, or add a trigger that rejects UPDATEs touching customer_id unless the caller holds org.update_billing.
- Move customer_id into a separate billing table that is not writable by the authenticated role via PostgREST.
- Temporarily restrict the org.update_settings permission to trusted administrators until the policy is corrected.
# Example RLS policy hardening (illustrative)
ALTER POLICY orgs_update ON public.orgs
USING (has_permission(auth.uid(), id, 'org.update_settings'))
WITH CHECK (
has_permission(auth.uid(), id, 'org.update_settings')
AND customer_id IS NOT DISTINCT FROM (SELECT customer_id FROM public.orgs WHERE id = orgs.id)
);
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

