DBHub HTTP transport DNS rebinding allows unauthenticated browser-origin SQL execution
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-306.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| bytebase | dbhub | before 0.22.5 | 0.22.5 | Patch available | CNA |
| — | @bytebase/dbhub (npm) | before 0.22.5 | 0.22.5 | Patch available | GHSA-fm8p-53ww-hf6w |
- dbhub Vendorbytebase Affected before 0.22.5 Fixed in 0.22.5 Patch available CNA
- @bytebase/dbhub (npm) Vendor— Affected before 0.22.5 Fixed in 0.22.5 Patch available GHSA-fm8p-53ww-hf6w
Remediation
- Fix · CNA dbhub (bytebase) Fixed in 0.22.5
- Fix · GHSA-fm8p-53ww-hf6w @bytebase/dbhub (npm) Fixed in 0.22.5 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-61742
- 2026-10-03 Alias added: GHSA-fm8p-53ww-hf6w
References
More bytebase vulnerabilities
- TI-2026-44228 @bytebase/dbhub's read-only mode does not prevent database writes CVSS 3.1HIGH 7.4
- TI-2026-83204 Read-only bypass in DBHub MySQL and MariaDB connectors via comments CVSS 4.0MEDIUM 6.1
- TI-2022-13896 bytebase - Improper Authorization CVSS 3.1MEDIUM 4.3
- TI-2022-13895 bytebase - Improper Authorization CVSS 3.1MEDIUM 4.3
- TI-2022-26714 Authentication bypass in Bytebase GitLab self-hosted login CVSS 4.0CRITICAL 9.3
- TI-2026-79259 Authorization bypass in Bytebase exposes other projects' task runs CVSS 4.0MEDIUM 5.3
Sources
- CVE-2026-61742 · CVE Program
- CVE-2026-61742 · NVD
- FIRST EPSS
- GHSA-fm8p-53ww-hf6w · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences