Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessRecover publishable sb_publishable_ anon key from client
-
DeliveryEnumerate target org_id via public schema
-
ExploitCall PostgREST RPC record_build_time with victim org_id
-
ExecutionSECURITY DEFINER function bypasses RLS on build_logs
-
PersistReplay with same build_id to trigger ON CONFLICT UPDATE
-
ImpactInflate victim's billable build minutes
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Access control enforcement
MITRE ATT&CK
1 technique across 1 tactic: Defense Evasion The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires only (1) network reachability to a Capgo instance's Supabase PostgREST endpoint and (2) possession of that instance's publishable Supabase anon key (sb_publishable_*), which is by design embedded in client apps and therefore not a secret. The vulnerable RPC public.record_build_time must be defined as SECURITY DEFINER with EXECUTE granted to anon and must use the ON CONFLICT (build_id, org_id) DO UPDATE pattern on public.build_logs - both true on Capgo < 12.128.2. No authentication, no user interaction, no privileged role, and no non-default configuration are required; the only meaningful limiter is that impact is confined to integrity of build_logs (billing) rather than full database compromise or data exfiltration. |
| Impact | The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:N/UI:N with VI:H and VC/VA:N (score 8.7) is internally consistent: the flaw is reachable over the network from an unauthenticated client using a key (sb_publishable_*) that is by design public, requires no user interaction, and produces a high integrity impact (tenant billing data tampering) without directly affecting confidentiality or availability of the database itself. EPSS and KEV data were not provided, and no public exploit was identified, so real-world exploitation probability cannot be quantified - but the precondition (possessing a publishable anon key) is essentially zero-effort for any user of a hosted Capgo instance, and the attack is fully automatable, so this should be treated as a real priority for any operator of Capgo < 12.128.2, particularly multi-tenant SaaS deployments where billing integrity matters. The 'Denial Of Service' and 'Authentication Bypass' tags accurately describe the financial-DoS outcome and the trust-boundary failure, respectively. |
| Exploit ScenarioDerived | An attacker obtains a target Capgo tenant's publishable Supabase anon key (trivially recoverable from the app's client-side bundle or any public API call) and issues a PostgREST RPC call to public.record_build_time with the victim's org_id and an attacker-chosen build_id and inflated build_time value. By replaying the call with the same (build_id, org_id) pair, the ON CONFLICT DO UPDATE clause lets the attacker repeatedly overwrite the victim's billing row, driving up the victim's billable build minutes or zeroing them out. No public PoC is referenced, but the VulnCheck advisory describes the call pattern in enough detail to reproduce trivially with curl. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 19, 2026
Cross-tenant billing log tampering in Capgo (Cap-go/capgo) before 12.128.2 allows unauthenticated attackers holding only the public Supabase publishable anon key to insert or overwrite build_logs rows for arbitrary organizations via the SECURITY DEFINER PostgREST RPC public.record_build_time. Because the function is granted to the anon role and uses ON CONFLICT (build_id, org_id) DO UPDATE, attackers can inflate or alter another tenant's billable build time, producing financial-impact denial of service. No public exploit identified at time of analysis, though the vendor advisory (GHSA-42xj-3h9w-26h5) and a VulnCheck write-up describe the attack path in detail.
RemediationAI
Vendor-released patch: upgrade Capgo to 12.128.2 or later, per the GitHub Security Advisory GHSA-42xj-3h9w-26h5 (https://github.com/Cap-go/capgo/security/advisories/GHSA-42xj-3h9w-26h5), which corrects the access control on public.record_build_time. For self-hosted operators who cannot upgrade immediately, the most direct compensating control is to REVOKE EXECUTE ON FUNCTION public.record_build_time FROM anon (and PUBLIC) in PostgreSQL so only authenticated roles can call it - this breaks any legitimate anon-key call path that depends on the RPC, so test that build-time recording from clients still works via an authenticated path before rolling out. As an additional control, add an explicit caller-vs-org_id authorization check inside the function body (or drop SECURITY DEFINER in favor of SECURITY INVOKER plus RLS on build_logs), and consider rotating the publishable anon key only if you also restrict the surface it can reach - rotation alone does not help because publishable keys are designed to be shared. Review public.build_logs for anomalous rows with mismatched org_id/build_id pairs created before the upgrade.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Capgo is a self-hostable live-update / OTA delivery platform for Capacitor mobile apps that uses Supabase (PostgreSQL + PostgREST + Row Level Security) as its backend. The vulnerable surface is a PostgREST RPC function, public.record_build_time, defined as SECURITY DEFINER - meaning it executes with the privileges of its owner and bypasses RLS - and granted EXECUTE to the anon role, which any client bearing the publishable sb_publishable_* anon key can assume. Per CWE-284 (Improper Access Control), the function does not validate that the caller is authorized for the supplied org_id before writing to public.build_logs, and its ON CONFLICT (build_id, org_id) DO UPDATE clause turns insertion into an idempotent upsert, allowing repeated overwrites of an existing tenant's row by reusing the same build_id.
Know when Capgo gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Network-reachable PostgREST RPC callable with a public anon key (PR:N, AC:L, UI:N); impact is tampering with billing rows so I:H, with no confidentiality or availability loss.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
Capgo (Cap-go/capgo) before 12.128.2 contains an improper access control vulnerability in the SECURITY DEFINER PostgREST RPC function public.record_build_time, which is granted to the anon role and callable with only the public Supabase publishable (sb_publishable_*) anon key. An unauthenticated attacker can insert rows into public.build_logs for arbitrary organizations and, because the function uses ON CONFLICT (build_id, org_id) DO UPDATE, can overwrite existing usage/billing records by reusing the same build_id for a target org. This enables cross-tenant tampering of billing build logs and financial-impact denial of service by inflating billable build time.
Executive ViewAI
Capgo versions before 12.128.2 contain a billing manipulation vulnerability (CVE-2026-56082, CVSS 8.7) allowing unauthenticated attackers to artificially inflate build charges for other organizations, creating direct financial impact and potential revenue loss. Any organization using affected Capgo versions faces risk of fraudulent billing modifications affecting cost accountability.
Apply vendor patch: Upgrade Capgo to version 12.128.2 or later. Interim: Restrict access to billing log infrastructure and implement audit logging and alerting on unexpected modifications to build timing records.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Account pre-registration hijack in Capgo before 12.128.2 lets a remote unauthenticated attacker claim an account under a
Cross-domain SSO account takeover in Capgo before 12.128.2 allows an attacker with enterprise org admin access and a mal
Authentication bypass in Capgo prior to version 12.128.2 lets attackers defeat email-based OTP verification by tampering
Authentication bypass in Capgo before 12.128.2 lets remote unauthenticated attackers mint arbitrary API keys by tamperin
Rate-limit bypass in Capgo versions prior to 12.128.2 lets remote unauthenticated attackers flood the channel_self endpo
Cross-tenant data poisoning in Supabase Capgo before 12.128.2 allows remote unauthenticated attackers to corrupt billing
Server-side privilege escalation in Capgo before 12.128.2 lets authenticated users holding build permissions abuse a pat
Unauthenticated information disclosure in Capgo before 12.128.2 lets remote attackers query the /functions/v1/channel_se
Unauthenticated information disclosure in Capgo before 12.128.2 exposes confidential business metrics through the Supaba
Unauthenticated denial of service in Cap-go capgo (capgo-backend) before 12.128.12 allows remote attackers to exhaust Po
Account takeover in Capgo before 12.128.2 stems from a password-change endpoint that omits current-password validation (
Information disclosure in Capgo (Capacitor live-update/OTA platform) before 12.128.2 lets unauthenticated callers abuse
EUVD-2026-38096
GHSA-4q75-4379-394h
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB