---
id: "CVE-2026-85726"
page: "https://infrastack.ai/live/CVE-2026-85726"
kind: "vulnerability"
aliases: ["CVE-2026-85726"]
title: "Chartbrew: unauthenticated MongoDB injection leaks collection fields via public charts"
severity: "high"
cvss: 7.5
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["chartbrew", "mongodb", "package", "self-hosted"]
not_affected_if: ["no-mongodb-source", "no-public-charts", "version-5.2.3-or-later"]
published_at: "2026-11-06T21:17:11+00:00"
first_seen_at: "2026-11-06T21:45:08+00:00"
updated_at: "2026-11-06T21:46:38+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-85726", "first_seen_at": "2026-11-06T21:45:08+00:00"}]
exploit_sources: []
---

# Chartbrew: unauthenticated MongoDB injection leaks collection fields via public charts

Link for people: https://infrastack.ai/live/CVE-2026-85726 (this .md is for agents)

Chartbrew is a web app that builds charts from databases and APIs. Before 5.2.3, a date variable placed inside a quoted MongoDB query was not escaped, so an unauthenticated visitor to a public, shareable or embedded chart can use a crafted URL filter to read any field in the queried collection, one character at a time.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the Chartbrew version in use; affected versions are those before `5.2.3`.
- Look for public, shareable or embedded MongoDB charts whose query places a date-typed variable inside a quoted placeholder.

## Fix

- Chartbrew: upgrade to `5.2.3`.

## Timeline

- 2026-11-06T21:45:08+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-85726

## Documents

- [advisory] Vendor advisory: github.com https://github.com/chartbrew/chartbrew/security/advisories/GHSA-mr45-2r9x-cgwf
- [fix] Patch: github.com https://github.com/chartbrew/chartbrew/commit/9e30fbd0d4a34033813a22bebb6fa6c9ae784d6b
- [fix] Release notes: github.com https://github.com/chartbrew/chartbrew/releases/tag/v5.2.3

## From the sources

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, a date-typed MongoDB variable placed inside a quoted query placeholder was inserted as an unescaped string, unlike the safely escaped or coerced string, number, and Boolean branches. The vulnerable surface is mongoDB-backed public, shareable, or embedded charts processed by date-variable substitution. An unauthenticated user supplies a crafted URL filter to a public, shareable, or embedded MongoDB chart whose query places a date-typed variable in a quoted literal. The crafted date value breaks out of the quoted literal and changes query logic; the chart's returned row count becomes a Boolean oracle for character-by-character field extraction. The chart must be externally reachable and use the vulnerable date-in-quoted-placeholder branch. Extraction is read-only and limited to one queried collection per request, and it requires neither an account nor a known field value. The blind oracle can disclose any field in the queried collection, including secrets the chart does not display. This issue is fixed in version 5.2.3.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
