# CVE-2026-54349: Chartbrew SQL injection via dashboard variable substitution

Source: https://junglewise.ai/threats/cve-2026-54349-chartbrew-is-an-open-source-web-application-that-can-connect  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-11-06. Updated: 2026-11-06  
License: CC BY 4.0 with a link back

CVE-2026-54349 · Severity: critical · CVSS 9.8 · Published 2026-11-06

Chartbrew is an open-source data visualization tool that connects to databases and APIs to create charts. An attacker can inject malicious SQL code through URL parameters in public or embedded charts, allowing them to read, modify, or delete database records without authentication. This vulnerability affects any Chartbrew instance exposing public or embedded charts with SQL queries that use URL-controlled variables.

Technologies: [Chartbrew](https://junglewise.ai/threats/technologies/chartbrew-chartbrew). Vendors: [Chartbrew](https://junglewise.ai/threats/vendors/chartbrew).

## Quick answers

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

**How severe is CVE-2026-54349?** Critical severity, with a CVSS score of 9.8, published 6 November 2026.

**Which products and versions are affected?** Chartbrew prior to 5.2.1.

**Is there a fix for CVE-2026-54349?** Yes: fixed in 5.2.1. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-54349 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-54349?** Check whether you run Chartbrew at an affected version. 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.

## How to fix

- Fixed in 5.2.1

## Technical details

The vulnerability is a SQL injection flaw in the applyMysqlOrPostgresVariables function where user-supplied URL filter values are used unsafely as JavaScript replacement strings in SQL queries. For MySQL and MariaDB, the attacker can additionally exploit unescaped backslash handling in quoted contexts to break out of SQL strings. An unauthenticated attacker can craft malicious URL parameters to execute arbitrary SQL with the privileges of the configured database account.

## Affected products

- Chartbrew Chartbrew prior to 5.2.1

## Timeline

- 2026-11-06: disclosed
- 2026-06-14: patched: Version 5.2.1 released with security fix

## References

- [https://github.com/chartbrew/chartbrew/commit/f93d31ac586091f72a7eb97d89fa3b4db271bd24](https://github.com/chartbrew/chartbrew/commit/f93d31ac586091f72a7eb97d89fa3b4db271bd24)
- [https://github.com/chartbrew/chartbrew/releases/tag/v5.2.1](https://github.com/chartbrew/chartbrew/releases/tag/v5.2.1)

## Related threats

- [Chartbrew AI SQL blocklist bypass in PostgreSQL query validation](https://junglewise.ai/threats/cve-2026-69128-chartbrew-is-an-open-source-web-application-that-can-connect)
- [Chartbrew API connection private host bypass](https://junglewise.ai/threats/cve-2026-68935-chartbrew-is-an-open-source-web-application-for-creating-charts)
- [Chartbrew dashboard password brute force via plaintext storage](https://junglewise.ai/threats/cve-2026-68933-chartbrew-is-an-open-source-web-application-that-can-connect)
- [Chartbrew BullMQ dashboard authentication bypass](https://junglewise.ai/threats/cve-2026-86005-chartbrew-is-an-open-source-web-application-that-can-connect)
- [Chartbrew arbitrary file deletion via connection cleanup](https://junglewise.ai/threats/cve-2026-85736-chartbrew-is-an-open-source-web-application-that-can-connect)
