Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted SQL query with embedded script payload
-
DeliveryBI Connector logs query text verbatim
-
ExploitOperator generates HTML report from affected logs
-
ExecutionOperator opens report in browser
-
PersistInjected script executes in operator session
-
ImpactExfiltrate other users' query text and usernames to attacker endpoint
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Two sequential, distinct conditions must both be satisfied for exploitation to succeed. First, the attacker must hold valid credentials permitting SQL query submission through the MongoDB BI Connector (PR:L); unauthenticated access to the BI Connector is not sufficient. Second, an operator must actively generate a MongoSQL Transition Readiness Tool HTML report that covers the log period containing the attacker's crafted query, and then open that report in a browser (UI:A) - the payload does not execute automatically at log-write time or at report-generation time, only upon browser rendering. Exploitation is further scoped to environments that actively run both the MongoDB BI Connector and the Transition Readiness Tool; organizations that have completed their migration and decommissioned the tool are not at risk. No non-default configuration of the BI Connector or the tool is required - the vulnerability arises from the tool's default log-to-HTML rendering behavior. The primary limiting factors for defenders are the PR:L credential requirement and the UI:A operator dependency, both of which significantly narrow the realistic attacker population. |
| Impact | The CVSS 4.0 score of 6.9 accurately reflects a real but structurally constrained risk profile. The AV:N metric confirms the injection vector is network-accessible via BI Connector query submission, while PR:L establishes that only authenticated users with query privileges can contribute payloads - unauthenticated exploitation is not possible. The UI:A metric is the most significant risk-limiting factor: a separate operator must both generate a report from logs containing the crafted query and then open that report in a browser; this two-step dependency substantially reduces the probability of accidental or automated triggering. The VC:H metric reflects genuine data-disclosure risk - other users' query text and usernames can be exfiltrated to attacker infrastructure. No EPSS data was provided in the source intelligence, no CISA KEV listing exists, and no public proof-of-concept has been identified, all of which lower real-world urgency below what CVSS alone might suggest. The VI:L integrity metric corresponds to the ability to render misleading content to the operator, a relevant social-engineering risk in an administrative reporting context. SSVC exploitation status is publicly unknown; the UI:A barrier means automated, scalable exploitation is not feasible, and the attack is better characterized as targeted insider or semi-insider abuse. |
| Exploit ScenarioDerived | An authenticated BI Connector user with low-level query privileges issues a crafted SQL query containing an embedded JavaScript payload - for example, a script block inside a string literal - that the BI Connector writes verbatim to its log. When a database administrator later runs the MongoSQL Transition Readiness Tool against those logs and opens the resulting HTML report in a standard browser, the payload executes in the administrator's browser context, silently sending all visible logged query text and usernames to an attacker-controlled endpoint via an HTTP beacon. No public exploit code has been identified at time of analysis, but the attack primitive is elementary given the nature of unsanitized log-to-HTML rendering. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 28, 2026
Stored cross-site scripting in MongoDB's MongoSQL Transition Readiness Tool allows any authenticated BI Connector query issuer to inject arbitrary HTML markup into operator-generated reports by embedding script payloads in query strings that the BI Connector logs verbatim. When an operator later generates an HTML report from affected logs and opens it in a browser, the injected markup executes, potentially disclosing other users' logged query text and usernames to attacker-controlled infrastructure or presenting spoofed content to the operator. No public exploit code has been identified and no CISA KEV listing exists at time of analysis; the required two-step operator interaction substantially limits opportunistic exploitation.
RemediationAI
Administrators should review the MongoDB SQL Interface changelog at https://www.mongodb.com/docs/sql-interface/changelog/ and upgrade the MongoSQL Transition Readiness Tool to the earliest version listed as addressing this issue. Because the CPE wildcard version (*) indicates no safe version has been independently confirmed from the provided input data, upgrade as soon as a fixed release is identified in the changelog. As a near-term compensating control, restrict BI Connector query access to trusted, known users only, thereby limiting which principals can inject content into logs; note that this may impact legitimate SQL BI workloads dependent on broader access. Additionally, operators should refrain from opening Transition Readiness Tool reports generated from logs that may contain untrusted query content until a patched version is deployed. Reports can be reviewed in a sandboxed or offline browser profile as a further precaution, reducing the blast radius of any inadvertent script execution.
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 MongoSQL Transition Readiness Tool (CPE: cpe:2.3:a:mongodb:bi_connector_transition_readiness_report:*:*:*:*:*:*:*:*) is a reporting utility that reads MongoDB BI Connector log files and generates HTML-formatted migration-readiness assessments. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation - Cross-Site Scripting): SQL query strings and usernames sourced from log entries are interpolated directly into HTML output without HTML-entity encoding, sanitization, or Content Security Policy constraints. Because the BI Connector captures SQL query text verbatim in its logs, any markup or JavaScript payload embedded within a query literal persists in the log file and is later rendered as live HTML when the operator opens the generated report. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:L/VA:N) confirms the network-accessible injection point through the BI Connector's SQL interface, the low-privilege requirement for query submission, and the mandatory active interaction from an operator to trigger the payload.
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
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
Network injection via authenticated BI Connector query; scope change to operator's browser context where third-party query data is disclosed; UI:R reflects the mandatory operator report-open step; no availability impact.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
1DescriptionCVE.org
The MongoSQL Transition Readiness Tool writes query text and user names read from BI Connector log files into its generated HTML report without encoding them for that output context. A user able to issue queries through the BI Connector can influence log content so that markup supplied in a query is interpreted by the browser when an operator later generates and opens the report, which may disclose other users' logged query text and user names to an external party or present misleading content to the operator. Generating a report over logs containing the affected entries and opening that report in a browser is required.
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
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
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
Unauthenticated MongoDB filter erasure in Budibase Server 3.39.18 through 3.44.0 lets a remote attacker read, modify, or
Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong
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-67778
GHSA-5phg-fmwx-665v
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB