CVE-2026-56281

Capgo - SQL Injection via Unvalidated limit Parameter in Admin Stats Endpoint

Published Jul 12, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
Description
Capgo before 12.128.2 contains a sql injection vulnerability in the POST /private/admin_stats endpoint where the limit parameter is destructured from unvalidated request body and interpolated directly into Cloudflare Analytics Engine SQL queries via template literals. An attacker with platform admin credentials can inject SQL fragments to enumerate dataset schemas, extract analytics data, or cause denial-of-service against the analytics backend.

Analysis

AI-generated

Technical impact

Capgo before version 12.128.2 contains a flaw where the limit parameter of the POST /private/admin_stats endpoint is taken directly from an unvalidated request body and interpolated into Cloudflare Analytics Engine SQL queries via template literals. An attacker who holds platform administrator credentials can inject arbitrary SQL fragments, allowing enumeration of database schemas, extraction of sensitive analytics data, or execution of heavy queries that may cause a denial of service against the analytics backend. The vulnerability is a classic SQL injection scenario with no input validation or parameterization.

Affected Systems

Any deployment of Capgo that has not been updated to 12.128.2 or later is vulnerable. The endpoint is only accessible to platform administrators, so the threat is limited to users with admin rights; non‑admin users are not directly affected by this flaw.

Risk and Exploitability

The CVSS score of 5.1 classifies the vulnerability as moderate. The EPSS score of < 1% indicates a very low likelihood of exploitation, and the vulnerability is not listed in CISA KEV. However, the requirement of administrative privileges reduces the potential attacker pool but still permits significant data exposure or service disruption. Given the moderate severity and the possibility of data theft or denial of service, timely remediation is recommended.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Capgo to version 12.128.2 or newer to remove the vulnerable code path.
  • Implement input validation or parameterized queries for the limit parameter, specifically addressing CWE‑89: Improper Input Validation, to prevent SQL injection.
  • Restrict the /private/admin_stats endpoint to trusted administrators and monitor analytics queries for anomalous activity.

Generated by OpenCVE AI on August 1, 2026 at 11:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Cap-go
Cap-go cap-go
Vendors & Products Cap-go
Cap-go cap-go
Type Values Removed Values Added
Description Capgo before 12.128.2 contains a sql injection vulnerability in the POST /private/admin_stats endpoint where the limit parameter is destructured from unvalidated request body and interpolated directly into Cloudflare Analytics Engine SQL queries via template literals. An attacker with platform admin credentials can inject SQL fragments to enumerate dataset schemas, extract analytics data, or cause denial-of-service against the analytics backend.
Title Capgo - SQL Injection via Unvalidated limit Parameter in Admin Stats Endpoint
Weaknesses CWE-89
References
Metrics cvssV3_1

{'score': 3.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:L'}

cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Sep 17, 2026, 5:54 PM
Reserved
Jun 20, 2026, 1:51 AM
Status
Deferred
Published
Jul 12, 2026, 12:16 PM
Modified
Sep 17, 2026, 6:16 PM