Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain public/embedded chart share link
-
DeliverySend crafted date URL parameter
-
ExploitBreak out of quoted literal, splice $regex filter
-
ExecutionRead row count as boolean oracle
-
ImpactExtract collection fields character-by-character
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Query language parameterization
|
| Exploitation Conditions | Requires a Chartbrew instance (<= 5.2.2) with a MongoDB data connection and at least one chart that is public, shareable, or embedded AND whose query places a date-typed variable inside a quoted literal (e.g. createdAt: "{{d}}") - the natural pattern for a date filter. The embed route GET /chart/:share_string/embedded needs no token and no allow_params gate, forwarding arbitrary URL query parameters as runtime variables, so no account or known field value is needed. Limiting factors: the vulnerable date-in-quoted-placeholder branch must actually be used (string/number/boolean variables are safely escaped/coerced and are not affected), the chart must be externally reachable, and SQL datasources are unaffected; impact is read-only and scoped to a single queried collection per request. |
| Impact | This is a credible near-term priority rather than an inflated high-CVSS score. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N, C:H) is internally consistent with the GHSA description and the commit diff: an unauthenticated network attacker with only an embed link triggers blind NoSQL injection (CWE-943) against MongoDB-backed public/shareable/embedded charts, with no authentication and no user interaction. The vuln.today decision label is 'this_week', which aligns with a reliably reproducible, low-complexity, unauthenticated confidentiality bug. No EPSS score and no CISA KEV entry were provided, so exploitation is not confirmed to be active in the wild; absence of EPSS/KEV data means widespread automated exploitation cannot be asserted - treat the urgency as driven by ease of exploitation and public technical detail, not by observed mass attacks. The GHSA advisory contains a complete, live-verified reproduction (exact HTTP requests extracting an unprojected password field), which substantially lowers the bar for an attacker even though no separately packaged weaponized exploit is cited in the input. Impact is bounded: read-only, one collection per request, confidentiality-only (I:N/A:N), so the practical severity is data disclosure, not takeover. |
| Exploit ScenarioDerived | A MongoDB-backed Chartbrew chart is made public, shareable, or embedded, with a date-typed variable used inside a quoted query literal (e.g. createdAt: "{{d}}"). An unauthenticated attacker with only the embed link supplies a crafted date value via a URL parameter that breaks out of the quoted literal, splices in $regex/$ne conditions, and comments out the query tail, turning the returned row count into a boolean oracle to extract any field - including secrets the chart never displays - character by character. A detailed, live-verified reproduction (including anonymous extraction of a password field) is published in the GHSA advisory, so working exploit steps are effectively public. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 06, 2026
Blind NoSQL injection in Chartbrew through 5.2.2 lets an unauthenticated remote attacker extract arbitrary fields - including values the chart never displays - from the MongoDB collection behind any public, shareable, or embedded chart whose query places a date-typed variable inside a quoted literal. The embed route GET /chart/:share_string/embedded requires no token and forwards every non-special URL query parameter as a runtime variable, so a crafted date value breaks out of the quoted literal and the chart's returned row count becomes a boolean oracle for character-by-character extraction. A public advisory with live-verified reproduction steps exists; impact is read-only and limited to one collection per request, and the vendor fixed the issue in 5.2.3.
RemediationAI
Upgrade to Chartbrew 5.2.3 (release tag v5.2.3, fixing commit 9e30fbd0d4a34033813a22bebb6fa6c9ae784d6b), which replaces the raw date substitution with JSON-serialized string escaping and rewrites the whole quoted literal - see the advisory at https://github.com/chartbrew/chartbrew/security/advisories/GHSA-mr45-2r9x-cgwf. Because the attack surface is defined by the prerequisites rather than by a switchable feature, exposure can be reduced until patching by breaking one of them: set every MongoDB-backed chart that uses a date-typed variable inside a quoted literal to private (clear public/shareable) and retire its embed link, which removes anonymous access to GET /chart/:share_string/embedded at the cost of disabling legitimate sharing and embedding for those charts; or change the variable's type from date to string, since the string branch escapes quotes, accepting that comparisons in the query become string-based rather than date-based. Blocking anonymous requests to /chart/*/embedded at a reverse proxy is an additional containment option only for deployments where embeds are not needed, and it will break any legitimate embedded charts. Note that the post-substitution acorn validator does not block this attack, so it should not be relied on as a mitigation. SQL datasources and charts that do not use the quoted date-variable pattern require no action for this CVE.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is CWE-943 (improper neutralization of special elements in data query logic), located in Chartbrew's MongoDB source plugin at server/sources/plugins/mongodb/mongodb.protocol.js. Chartbrew builds MongoDB queries as strings and substitutes chart variable placeholders; the string, number and Boolean branches escape or coerce their runtime values, but the date branch inserted String(runtimeValue) verbatim when the placeholder sat inside a quoted literal (the natural pattern for a date filter such as createdAt: "{{d}}"). The substituted query is then re-validated by an acorn-based allow-list in server/modules/validateMongoQuery.js, but that validator requires only a single db.collection().method() call chain with literal arguments while still permitting Mongo operators ($regex, $ne, $gt) as string object keys and permitting // line comments - so the attacker's breakout survives validation. Reachability comes from GET /chart/:share_string/embedded (server/api/ChartRoute.js, ChartController.findByShareString), which gates solely on chart.public || chart.shareable with user=null and forwards every non-special query parameter as a runtime variable with no token and no allow_params gate. The upstream fix replaces per-branch escaping with a serializeMongoString() helper built on JSON.stringify (plus escaping of U+2028/U+2029) and, when the placeholder is already quoted, makes the replacement target include the surrounding quote characters so the whole quoted literal is rewritten; regression tests cover both a quoted date breakout payload and quoted string/date defaults. SQL datasources are not affected by this branch, and the unquoted-placeholder path and string/number/Boolean branches were already safe.
Know when MongoDB gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Unauthenticated remote attacker exploits an exposed embed endpoint with no interaction (AV:N/AC:L/PR:N/UI:N); read-only blind extraction gives C:H with no integrity or availability impact (I:N/A:N).
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.org
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.
Technical POC Analysis
CWE-943 (Improper Neutralization of Special Elements in Data Query Logic) - here, a NoSQL injection reached through a variable-substitution helper rather than a raw request body.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
Chartbrew versions through 5.2.2 are vulnerable to a blind NoSQL injection that allows an unauthenticated attacker to extract sensitive data from MongoDB collections behind public or embedded charts. Because the attack is read-only and requires no credentials, any organization exposing Chartbrew dashboards externally is at risk of data leakage. Leadership should prioritize immediate mitigation to protect confidential information and maintain customer trust.
No vendor-released patch identified at time of analysis
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
NoSQL injection exploits databases that don't use traditional SQL syntax-like MongoDB, CouchDB, or Redis-by manipulating queries through unsanitized user input.
MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo
Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa
The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a
The MongoDB bson JavaScript module (also known as js-bson) versions 0.5.0 to 1.0.x before 1.0.5 is vulnerable to a Regul
Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut
After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's
The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to
Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong
Unauthenticated MongoDB filter erasure in Budibase Server 3.39.18 through 3.44.0 lets a remote attacker read, modify, or
SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary
MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle
MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e
EUVD-2026-118505
NVD
CVE.org
EPSS
GitHub
Exploit-DB