Executive brief
Cap-go, a tool used for managing mobile app updates and analytics, contains a security flaw in how it handles database queries. An attacker with basic read-only access could bypass security restrictions to view sensitive analytics data belonging to other users or applications. This could lead to the exposure of private usage patterns, device identifiers, and application performance metrics across different customer accounts.
Technical details
Multiple SQL injection vulnerabilities exist in the 'cloudflare.ts' utility within the Cap-go backend. The root cause is the direct interpolation of user-provided API request body parameters—including deviceIds, search, version_name, cursor, and actions—into SQL query strings sent to the Cloudflare Analytics Engine. While the application uses Zod for type validation, it fails to sanitize or escape the string content. An authenticated attacker with a valid read-level API key can provide malicious payloads (e.g., via the 'deviceIds' array) to break out of the intended query logic. This allows for cross-tenant data access, enabling the attacker to exfiltrate analytics data from other applications or users. The issue is fixed in version 12.128.2.
Affected products
- Cap-go capgo < 12.128.2
Timeline
- 2026-04-24: advisory: GitHub Security Advisory published by maintainer
- 2026-06-22: disclosed: CVE published and NVD record created