Summary
CVE-2026-61742 is a critical vulnerability in DBHub, a database MCP (Model Context Protocol) server from Bytebase that exposes Postgres, MySQL, SQL Server, Oracle, MariaDB, and SQLite databases to AI tooling. When run in HTTP transport mode, DBHub’s origin-validation logic can be bypassed via DNS rebinding, allowing a malicious website to trigger unauthenticated SQL execution against a victim’s DBHub instance directly from the victim’s browser. The flaw is tracked as CWE-306 (Missing Authentication for Critical Function) and CWE-346 (Origin Validation Error), with a CVSS score of 9.3.
Technical details
- Root cause: DBHub’s HTTP transport validates browser requests by checking that the
Originheader’s hostname matches theHostheader’s hostname; if they match, the request is treated as trusted and the origin is reflected back viaAccess-Control-Allow-Origin. - Trigger conditions: An attacker registers a domain that first resolves to a server hosting malicious JavaScript, lures a victim to visit it, then rebinds the DNS record for that domain to the victim’s locally/network-accessible DBHub HTTP endpoint. Once rebound, both
OriginandHostcontain the attacker’s hostname, satisfying DBHub’s check. - Attack vector: Network — no prior authentication, network access, prompt injection, or AI model involvement is required; the victim only needs to browse to the attacker’s page while DBHub’s HTTP transport (e.g., started with
--transport http --port 8080) is reachable. - Impact: The attacker’s page can silently enumerate available MCP tools and dispatch database operations through the victim’s browser, allowing reading and enumeration of database contents and, depending on DBHub’s configured tool permissions and database credentials, writing to or modifying the database. In the default demo configuration, this exposes the bundled demo SQLite database; in production deployments, it exposes whatever database DBHub is configured to proxy.
Affected software
- Bytebase DBHub (npm package
@bytebase/dbhub), versions ≤ 0.22.4, when run with HTTP transport mode enabled.
Severity
- CVSS score: 9.3 (Critical)
- CVSS v4.0 vector:
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Mitigation and recommended actions
- Immediate: Upgrade DBHub to version 0.22.5 or later, which fixes the origin-validation bypass.
- If immediate patching is not possible:
- Bind DBHub’s HTTP transport to loopback (
127.0.0.1) rather than exposing it on network-accessible interfaces. - Avoid running DBHub’s HTTP transport mode in environments reachable by untrusted browsers until patched.
- Restrict network access to the DBHub HTTP endpoint via firewall rules, and monitor for unexpected inbound requests with mismatched or unusual Origin/Host header pairs.
- Bind DBHub’s HTTP transport to loopback (

