---
id: CVE-2026-61851
title: >-
  Chartbrew is an open-source web application that can connect directly to
  databases and APIs and use the data to create charts
summary: >-
  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.2,
  Chartbrew's runQuery() implementation in
  server/modules/ai/orchestrator/tools/runQuery.js atte…
severity: medium
cvss: 6.5
cvssVector: 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H'
cwe:
  - CWE-184
vendor: chartbrew
product: chartbrew
affected:
  - chartbrew < 5.2.2
published: '2026-09-21'
updated: '2026-09-24'
sourceUpdated: '2026-09-24T21:25:27.050'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-61851'
references:
  - url: >-
      https://github.com/chartbrew/chartbrew/commit/8c8412edce56093e81b524e0235a796c7dd42336
    label: security-advisories@github.com
  - url: 'https://github.com/chartbrew/chartbrew/releases/tag/v5.2.2'
    label: security-advisories@github.com
  - url: >-
      https://github.com/chartbrew/chartbrew/security/advisories/GHSA-cp8j-2xwc-hxg8
    label: security-advisories@github.com
tags:
  - nvd
  - cve.org
epss: 0.00471
epssPercentile: 0.38004
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-22T14:12:09.684795Z'
cvssSource: cna
ingestedAt: '2026-09-21T21:53:57.426Z'
---

## Overview

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.2, Chartbrew's runQuery() implementation in server/modules/ai/orchestrator/tools/runQuery.js attempts to enforce read-only database access with a blocklist containing only seven SQL keywords. An authenticated user with AI feature access can submit dangerous statements or database functions that are absent from the read-only keyword blocklist, causing them to execute without SQL injection or keyword-obfuscation techniques. Depending on the database engine, configuration, and database-user privileges, this can expose or write files, access internal network resources, change database privileges, execute commands, or alter data. This issue is fixed in version 5.2.2.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
