Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @bytebase/dbhub
  4. ›
  5. CVE-2026-61742

CVE-2026-61742: DBHub HTTP transport DNS rebinding allows unauthenticated browser-origin SQL execution

September 24, 2026

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.

References

  • github.com/advisories/GHSA-fm8p-53ww-hf6w
  • github.com/bytebase/dbhub/commit/5bf5c3242a22e94871dfdf53913c84a5025b7381
  • github.com/bytebase/dbhub/pull/340
  • github.com/bytebase/dbhub/releases/tag/v0.22.6
  • github.com/bytebase/dbhub/security/advisories/GHSA-fm8p-53ww-hf6w
  • nvd.nist.gov/vuln/detail/CVE-2026-61742

Code Behaviors & Features

Detect and mitigate CVE-2026-61742 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.22.5

Fixed versions

  • 0.22.5

Solution

Upgrade to version 0.22.5 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-306: Missing Authentication for Critical Function
  • CWE-346: Origin Validation Error

Source file

npm/@bytebase/dbhub/CVE-2026-61742.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 25 Sep 2026 00:16:17 +0000.