# CVE-2026-56221: Cap-go SQL injection in cloudflare.ts analytics queries

Source: https://junglewise.ai/threats/cve-2026-56221-cap-go-sql-injection-in-cloudflare-ts-analytics-queries  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-22. Updated: 2026-06-22  
License: CC BY 4.0 with a link back

CVE-2026-56221 · Severity: medium · CVSS 6.5 · Published 2026-06-22

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.

## Quick answers

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

**How severe is CVE-2026-56221?** Medium severity, with a CVSS score of 6.5, published 22 June 2026.

**Which products and versions are affected?** Cap-go capgo < 12.128.2.

**Is there a fix for CVE-2026-56221?** 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-56221 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-56221?** Check whether anything you run is named in the advisory. 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

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

## References

- [https://github.com/Cap-go/capgo/security/advisories/GHSA-f83x-p28r-pf74](https://github.com/Cap-go/capgo/security/advisories/GHSA-f83x-p28r-pf74)
- [https://www.vulncheck.com/advisories/cap-go-sql-injection-in-cloudflare-analytics-engine-queries-via-cloudflare-ts](https://www.vulncheck.com/advisories/cap-go-sql-injection-in-cloudflare-analytics-engine-queries-via-cloudflare-ts)
