Description
Capgo before 12.128.2 contains an information disclosure vulnerability in the find_apikey_by_value PostgreSQL function marked SECURITY DEFINER and executable by the anon role. Unauthenticated attackers can call this function via the /rest/v1/rpc/find_apikey_by_value endpoint to retrieve sensitive API key metadata including user_id, mode, org scoping, and expiration details when supplied a valid key value.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Capgo | Capgo | < 12.128.2 | 12.128.2 |
References
- GitHub Security Advisory (GHSA-2xjq-h43m-592f) vendor-advisory
- VulnCheck Advisory: Capgo - Unauthenticated API Key Metadata Disclosure via SECURITY DEFINER RPC Function third-party-advisory