# CVE-2026-85726: Chartbrew MongoDB query injection in date-typed variables

Source: https://junglewise.ai/threats/cve-2026-85726-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-85726 · Severity: high · CVSS 7.5 · Published 2026-11-06

Chartbrew is an open-source web application for connecting to databases and APIs to create interactive charts. An unauthenticated attacker can exploit a flaw in how date values are processed within MongoDB queries to escape quoted literals and manipulate query logic, allowing them to extract sensitive data from any field in the database without needing to log in or possess valid credentials. The attack affects publicly accessible charts and works as a blind oracle, revealing data character-by-character through the chart's row count response.

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

## Quick answers

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

**How severe is CVE-2026-85726?** High severity, with a CVSS score of 7.5, published 6 November 2026.

**Which products and versions are affected?** Chartbrew before 5.2.3.

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

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

**Am I affected by CVE-2026-85726?** 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.3

## Technical details

A date-typed MongoDB variable placed inside a quoted query placeholder is inserted as an unescaped string, unlike properly escaped string, number, and Boolean branches. An unauthenticated user can supply a crafted URL filter to a public, shareable, or embedded MongoDB chart, causing the date value to break out of the quoted literal and alter query semantics. The attack uses the chart's returned row count as a Boolean oracle for read-only field extraction from the queried collection, limited to one collection per request but capable of disclosing any field including those not displayed by the chart.

## Affected products

- Chartbrew Chartbrew before 5.2.3

## Timeline

- 2026-11-06: disclosed

## References

- [https://github.com/chartbrew/chartbrew/commit/9e30fbd0d4a34033813a22bebb6fa6c9ae784d6b](https://github.com/chartbrew/chartbrew/commit/9e30fbd0d4a34033813a22bebb6fa6c9ae784d6b)
- [https://github.com/chartbrew/chartbrew/releases/tag/v5.2.3](https://github.com/chartbrew/chartbrew/releases/tag/v5.2.3)

## 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)
