Trend Micro’s Zero Day Initiative has gone public with an unpatched flaw in DBHub, the open source MCP server from Bytebase that lets AI agents query Postgres, MySQL, SQL Server, Oracle and other databases. Advisory ZDI-26-1067 (CVE-2026-136441) rates it 9.8 out of 10: a remote attacker needs no login and no user click, and the root cause is a wrong authorization decision made while DBHub parses untrusted SQL. ZDI published it as a zero-day because, by its timeline, Bytebase never shipped a confirmed fix in the 16 months since the report.
A report from July 2025, published without a patch
Alfredo Oliveira and David Fiser of Trend Research reported the bug on 18 July 2025. ZDI says it chased the vendor in October and December 2025 and told Bytebase on 9 November 2026 that it would publish without a fix. Its only advice is to restrict who can interact with the product. The CVE record names no fixed version, just a single affected commit, 16e870ba. We looked that commit up: it is dated 5 June 2025 and is titled “feat: support multi-sql statements”, the change that let one request carry several SQL statements.
ZDI labels the result an authentication bypass but has released no technical write-up. Read together with the commit, the most likely target is the check that decides whether a query only reads data before it reaches the database. That is our interpretation, not a detail ZDI has confirmed.
The fifth hole in the same guard this year
If that reading holds, this is a familiar story for DBHub. Its GitHub advisory page and the GitHub Advisory Database list four earlier 2026 flaws that let a caller get past the read-only setting or reach the server from a browser, each fixed in a later release:
| CVE | What broke | Fixed in |
|---|---|---|
| CVE-2026-61742 | DNS rebinding on the HTTP transport let a web page run SQL through a local DBHub | 0.22.5 |
| CVE-2026-61788 | Read-only mode did not stop database writes | 0.22.6 |
| CVE-2026-61789 | MySQL and MariaDB: a statement hidden behind -- passed the check and still ran | 0.22.6 |
| CVE-2026-134803 | Backslash escaped quotes hid stacked write and DDL statements | 1.7.0 |
| CVE-2026-136441 | Incorrect authorization while parsing untrusted SQL (ZDI-26-1067) | none named |
The pattern matters more than any single entry. A text classifier that guesses what a database will do with a string keeps losing to the database’s own parser, and each fix closes one trick. Bytebase has moved in the right direction: since 0.22.6 every read-only query also runs inside the engine’s own read-only transaction, and version 2.1.0 from 21 November classifies Postgres queries with the real Postgres parser. Its own documentation now calls read-only mode a guardrail, not a permission boundary.
Why this reaches beyond a niche tool
DBHub is not a side project. The npm package @bytebase/dbhub was downloaded 292,480 times in the week to 23 November, and the repository has close to 4,000 stars. It ships as a ready plugin for Claude Code and Codex, with read-only mode switched on, which is exactly the setting people trust when they point an agent at production data. The realistic attacker is not someone typing SQL into the server, but text the agent reads, such as a support ticket or a web page, that nudges it into sending a crafted query.
DBHub’s documentation also lists where even the engine backstop does not help. On Oracle and TiDB the classifier alone blocks DDL, and on Apache Doris it is the only protection for everything. Functions a plain SELECT can call, such as lo_export on Postgres or LOAD_FILE on MySQL, are limited by database privileges, not by read-only mode.
What to do with a DBHub install today
- Find it. Check your MCP client configs for
@bytebase/dbhuband runnpm ls -g @bytebase/dbhub. Move to the current release, 2.1.0. That closes the four fixed CVEs above, but nobody has confirmed that it closes ZDI-26-1067. - Treat the database account as the real boundary. Give DBHub a dedicated user that can only SELECT the schemas the agent needs. Verify it: in Postgres,
SELECT rolsuper FROM pg_roles WHERE rolname = current_user;must return false; in MySQL,SHOW GRANTS FOR CURRENT_USER();should list SELECT only. Never put an admin DSN behind a read-only tool. - Keep it off the network. ZDI’s only mitigation is to restrict access. Prefer the stdio transport inside the client; if you run the HTTP transport, bind it to localhost or put it behind a firewall and an authenticating proxy.
- On Oracle, TiDB or Apache Doris, assume read-only mode can be bypassed and rely on database grants alone.
- Do not let agents run SQL against production on autopilot while they also read untrusted text. Require a human approval for
execute_sqlon sensitive sources.
The same lesson came up with other database and agent connectors on our MCP security tracker, most recently when the official MCP Git server ran commands even on read-only calls. Old, unmaintained MCP servers are a related risk, as the MCPhantom research on deprecated servers showed.
What is still open
Three questions remain: which DBHub releases are really affected, whether one of the fixes above already closed the bug without credit, and whether Bytebase will respond to the advisory. As of Tuesday evening we found no statement from Bytebase on ZDI-26-1067 and no report of exploitation. We will update this article when the vendor names a fixed version.



