High severity · published Sep 21, 2026
CVE-2026-65980
Chartbrew: SQL Injection via Missing Backslash Escaping in ClickHouse Variable Substitution
7.9
CVSS
0.5%
EPSS
No
On KEV
Description
Chartbrew is an open-source web application that can connect directly to databases and APIs and use the data to create charts. Prior to 5.2.3, Chartbrew's ClickHouse protocol in server/sources/plugins/clickhouse/clickhouse.protocol.js calls applySqlVariables() from server/sources/shared/sql/sql.variables.js without enabling the escapeBackslash option. For a ClickHouse-backed chart with variable binding, an attacker can supply a backslash before a quote so quote doubling does not keep the value within its intended SQL string literal. Public dashboards can expose this path without authentication, and successful exploitation can execute arbitrary ClickHouse SQL to disclose data or, when the database configuration permits, access files or internal network resources. This issue is fixed in version 5.2.3.
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 40% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CH
chartbrew · chartbrew
< 5.2.2 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-65980
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-65980
x_refsource_CONFIRM
https://github.com/chartbrew/chartbrew/security/advisories/GHSA-5jgv-45cw-hc53
x_refsource_MISC
https://github.com/chartbrew/chartbrew/commit/5f95d07b5fee7f69c9d1242b5c99ea11ff046341
x_refsource_MISC
https://github.com/chartbrew/chartbrew/releases/tag/v5.2.3
More from chartbrew
9.8
CVE-2026-27005
Chartbrew: SQL injection in date-type variable handling (applyMysqlOrPostgresVariables)
9.6
CVE-2026-30232
Chartbrew has SSRF in API Data Connection - No IP Validation on User-Provided URLs
8.8
CVE-2026-25888
Chartbrew: Remote Code Execution (RCE) via Vulnerable API
8.1
CVE-2026-40600
Chartbrew: Incorrect Access Control in project share policy routes via unbound policy_id
8.1
CVE-2026-40904
Chartbrew: Incorrect Access Control in dataset and dataRequest routes via team-scoped permission checks
