# CVE-2026-56216: Capgo scope escalation via API key creation in functions endpoint

Source: https://junglewise.ai/threats/cve-2026-56216-capgo-scope-escalation-via-api-key-creation-in-functions-endpoint  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-20. Updated: 2026-06-21  
License: CC BY 4.0 with a link back

CVE-2026-56216 · Severity: high · CVSS 8.8 · Published 2026-06-20

Capgo, a platform for managing mobile app updates, suffered from a security flaw where restricted API keys could be used to create new, unrestricted keys. An attacker with access to a low-privilege key intended for a single application could upgrade their own permissions to gain full access to an entire organization's data and settings. This could lead to unauthorized access to sensitive application listings and other protected administrative functions.

Technologies: [Capgo](https://junglewise.ai/threats/technologies/capgo). Vendors: [Capgo](https://junglewise.ai/threats/vendors/capgo).

## Quick answers

**Is CVE-2026-56216 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-56216 being exploited in the wild.

**How severe is CVE-2026-56216?** High severity, with a CVSS score of 8.8, published 20 June 2026.

**Which products and versions are affected?** Capgo < 12.128.2.

**Is there a fix for CVE-2026-56216?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-56216 attacked?** It is attacked over the network, in a hosted service.

**Am I affected by CVE-2026-56216?** Check whether you run Capgo at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A scope escalation vulnerability exists in Capgo's 'POST /functions/v1/apikey' endpoint due to insufficient validation of the caller's existing permissions. The backend logic in 'supabase/functions/_backend/public/apikey/post.ts' only blocked key creation if the caller's key had 'limited_to_orgs' defined, failing to check for 'limited_to_apps' restrictions. A remote attacker with a valid app-limited API key can send a request with empty limit arrays to generate a new key with 'mode: all' and organization-wide access. This allows the attacker to bypass least-privilege controls and access protected endpoints such as '/app' to list all organizational resources. The issue is fixed in version 12.128.2 by ensuring all restricted keys are blocked from minting broader-scope keys.

## Affected products

- Capgo Capgo < 12.128.2

## Timeline

- 2026-03-03: advisory: Initial GitHub security advisory published
- 2026-06-20: disclosed: CVE published to NVD

## References

- [https://github.com/Cap-go/capgo/security/advisories/GHSA-2ff8-7h96-hwfp](https://github.com/Cap-go/capgo/security/advisories/GHSA-2ff8-7h96-hwfp)
- [https://www.vulncheck.com/advisories/capgo-scope-escalation-via-api-key-creation-in-functions-v1-apikey](https://www.vulncheck.com/advisories/capgo-scope-escalation-via-api-key-creation-in-functions-v1-apikey)

## Related threats

- [Capgo access control bypass in SSO provider configuration](https://junglewise.ai/threats/cve-2026-100612-capgo-capgo-app-through-version-12-261-0-contains-an-incomplete)
- [Capgo information disclosure in SSO check-domain endpoint](https://junglewise.ai/threats/cve-2026-56336-capgo-information-disclosure-in-sso-check-domain-endpoint)
- [Capgo improper authorization in SSO prelink endpoint](https://junglewise.ai/threats/cve-2026-56313-capgo-improper-authorization-in-sso-prelink-endpoint)
- [Capgo insufficient authentication in email change endpoint](https://junglewise.ai/threats/cve-2026-56308-capgo-insufficient-authentication-in-email-change-endpoint)
- [Capgo SQL injection in admin_stats endpoint](https://junglewise.ai/threats/cve-2026-56281-capgo-sql-injection-in-admin-stats-endpoint)
