Description
DBHub is a database MCP server for Postgres, MySQL, SQL Server, Oracle, MariaDB, SQLite. Versions prior to 0.22.5 expose an unauthenticated HTTP MCP endpoint when started with the documented HTTP transport mode, for example `--transport http --port 8080`. The HTTP server attempts to protect browser-origin access by checking whether the `Origin` hostname equals the `Host` hostname, then reflecting the validated `Origin` into `Access-Control-Allow-Origin`. This does not stop DNS rebinding. After an attacker-controlled hostname rebinds to a victim-accessible DBHub HTTP server, both `Origin` and `Host` can contain the attacker-controlled hostname, so DBHub accepts the request and dispatches MCP tool calls. As a result, a malicious website can deterministically invoke DBHub MCP tools from the victim's browser without prompt injection or model involvement. With the default demo configuration this can read and write the demo SQLite database; with a real configured database, the same primitive can read, enumerate, and potentially write database contents depending on DBHub's configured tool permissions and database credentials. Version 0.22.5 fixes the issue.
Published: 2026-09-24
Score: 9.3 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Unauthenticated SQL Execution via Browser-Origin Access
Action: Immediate Patch
AI Analysis

Impact

DBHub provides a machine‑to‑machine administration interface for several database engines. When the server is started with HTTP transport, an unauthenticated MCP endpoint is exposed. The server attempts to mitigate browser‑origin access by comparing the Origin and Host headers and echoing the validation into the Access‑Control‑Allow‑Origin header. However, this check does not stop DNS rebinding; an attacker can cause a victim’s browser to send requests to DBHub with both headers containing an attacker‑controlled hostname. The server then accepts the request and dispatches the requested MCP tool, allowing the attacker’s webpage to execute arbitrary SQL statements without authentication or prompts. In the default demo configuration this permits reading and writing the demo SQLite database; in normal installations the same mechanism can read, enumerate, and potentially modify any configured database depending on granted tool permissions and credentials. The flaw arises from missing authentication checks (CWE‑306) and inadequate split‑brain protection (CWE‑346).

Affected Systems

Bytebase DBHub version 0.22.5 and earlier when launched with the --transport http flag, exposing the HTTP port (such as 8080). The vulnerability applies to all supported database engines – Postgres, MySQL, SQL Server, Oracle, MariaDB, and SQLite – as long as the HTTP transport mode is enabled.

Risk and Exploitability

The CVSS score of 9.3 indicates high severity. Attackers need only control a DNS hostname that rebinds to the DBHub instance and access to the victim’s browser that can reach the exposed HTTP port. No credentials are required; the exploit is deterministic and straightforward. Because the vulnerability is not yet listed in the CISA KEV catalog, the business impact remains undetermined, but the potential for data theft, modification, or privilege escalation at the database level is significant. EPSS score: not available.

Generated by OpenCVE AI on September 25, 2026 at 06:17 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade DBHub to version 0.22.5 or later to apply the vendor fix.
  • Disable the HTTP transport mode or restrict the HTTP server to the internal network only.
  • Implement firewall or network segmentation rules to block or limit external access to the DBHub HTTP port and mitigate DNS rebinding attempts.

Generated by OpenCVE AI on September 25, 2026 at 06:17 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-fm8p-53ww-hf6w DBHub HTTP transport DNS rebinding allows unauthenticated browser-origin SQL execution
History

Fri, 25 Sep 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 25 Sep 2026 14:45:00 +0000

Type Values Removed Values Added
First Time appeared Bytebase
Bytebase dbhub
Vendors & Products Bytebase
Bytebase dbhub

Thu, 24 Sep 2026 17:45:00 +0000

Type Values Removed Values Added
Description DBHub is a database MCP server for Postgres, MySQL, SQL Server, Oracle, MariaDB, SQLite. Versions prior to 0.22.5 expose an unauthenticated HTTP MCP endpoint when started with the documented HTTP transport mode, for example `--transport http --port 8080`. The HTTP server attempts to protect browser-origin access by checking whether the `Origin` hostname equals the `Host` hostname, then reflecting the validated `Origin` into `Access-Control-Allow-Origin`. This does not stop DNS rebinding. After an attacker-controlled hostname rebinds to a victim-accessible DBHub HTTP server, both `Origin` and `Host` can contain the attacker-controlled hostname, so DBHub accepts the request and dispatches MCP tool calls. As a result, a malicious website can deterministically invoke DBHub MCP tools from the victim's browser without prompt injection or model involvement. With the default demo configuration this can read and write the demo SQLite database; with a real configured database, the same primitive can read, enumerate, and potentially write database contents depending on DBHub's configured tool permissions and database credentials. Version 0.22.5 fixes the issue.
Title DBHub HTTP transport DNS rebinding allows unauthenticated browser-origin SQL execution
Weaknesses CWE-306
CWE-346
References
Metrics cvssV4_0

{'score': 9.3, '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-24T17:42:27.772Z

Reserved: 2026-07-10T18:59:00.047Z

Link: CVE-2026-61742

cve-icon Vulnrichment

Updated: 2026-09-24T17:42:17.021Z

cve-icon NVD

Status : Received

Published: 2026-09-24T18:17:16.173

Modified: 2026-09-24T18:17:16.173

Link: CVE-2026-61742

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-25T14:16:43Z

Weaknesses
  • CWE-306

    Missing Authentication for Critical Function

  • CWE-346

    Origin Validation Error