Skip to main content
Menu
CVEs

Bytebase DBHub read-only bypass in SQL statement parsing

Affects DBHub before 1.7.0 (npm package @bytebase/dbhub) for MCP clients restricted to read-only execute_sql against MySQL, MariaDB, or PostgreSQL. Fixed in 1.7.0.

CVE-2026-134803Published November 22, 2026, updated

7.2HighCNA
Exploited
No known exploitation
Fix
Fixed in 1.7.0
Who is exposed
Specific setups only

Summary

Bytebase's DBHub has a read-only mode bypass that lets a remote attacker with low-privilege access run write and DDL statements, such as modifying or dropping data in MySQL, MariaDB, or PostgreSQL, by hiding them inside backslash-escaped quotes. No user action is needed, but the attacker must be able to log in.

Written by a model

Original description

DBHub before 1.7.0 contains a read-only mode bypass vulnerability that allows MCP clients restricted to readonly execute_sql to run write and DDL statements via backslash-escaped quotes. Attackers can hide stacked statements that clear transaction_read_only or COMMIT inside strings misparsed by scanSingleQuotedString, letting them modify or drop MySQL, MariaDB, or PostgreSQL data.

Who should check

Teams running Bytebase DBHub (npm @bytebase/dbhub) before 1.7.0 with read-only execute_sql MCP clients against MySQL, MariaDB, or PostgreSQL databases.

“DBHub before 1.7.0 contains a read-only mode bypass vulnerability”

vulncheck.com

What to do

  1. Check whether your setup matches what the bug needs.

    Affects DBHub versions before 1.7.0 (npm package @bytebase/dbhub). MCP clients restricted to read-only execute_sql access are the ones affected. Target database is MySQL, MariaDB, or PostgreSQL.
  2. Upgrade to a fixed version: 1.7.0.

Check your systems with an agent

Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.

Check whether my systems are affected by CVE-2026-134803 (DBHub before 1.7.0 Read-Only Mode Bypass via Backslash-Escaped Quotes), using the cve.now data below.

Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.

What cve.now has for CVE-2026-134803 (entry last updated 2026-11-22):
Affected:
- npm package @bytebase/dbhub: fixed in 1.7.0
Fixed versions: 1.7.0.
Conditions (all must be true for the bug to be hit):
- Affects DBHub versions before 1.7.0 (npm package @bytebase/dbhub). (source: https://www.vulncheck.com/advisories/dbhub-before-1.7.0-read-only-mode-bypass-via-backslash-escaped-quotes)
- MCP clients restricted to read-only execute_sql access are the ones affected. (source: https://www.vulncheck.com/advisories/dbhub-before-1.7.0-read-only-mode-bypass-via-backslash-escaped-quotes)
- Target database is MySQL, MariaDB, or PostgreSQL. (source: https://www.vulncheck.com/advisories/dbhub-before-1.7.0-read-only-mode-bypass-via-backslash-escaped-quotes)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: network access, low-privilege login, no user action.
CISA KEV: CVE-2026-134803 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-134803 only. If you also check another CVE, look up its own KEV status; never assume it from this one.

How to check:
- Packages (npm): find every lockfile in each project and run the stack.check operation of the cve.now MCP server (execute) on each one. Compare the resolved versions, not the ranges a manifest declares, with the affected versions above. Include transitive dependencies.

Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/bytebase/dbhub/commit/cc9e3c7ad36b9fafd333a08d455781f2c5b548ee
- https://github.com/bytebase/dbhub/pull/505
- https://github.com/bytebase/dbhub/releases/tag/v1.7.0
- https://github.com/bytebase/dbhub/blob/v1.6.1/src/utils/sql-parser.ts#L79-L88
- https://www.vulncheck.com/advisories/dbhub-before-1.7.0-read-only-mode-bypass-via-backslash-escaped-quotes
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.

Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.

Entry: https://cve.now/CVE-2026-134803
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-134803"}.

Affected versions

cve.now Index

25Pof 100 · provisional · methodology v3
  • Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
  • Exposure8/25Specific setups only, reachable over the network
  • Reach10/20Affects npm packages
  • Severity7.2/10CVSS 7.2
  • No patch0/5No signal

What would change the score

  • Would score about 75 if added to CISA KEV
  • Would score about 70 if CISA's SSVC rates exploitation active
  • Would score about 32 if CISA's SSVC rates it automatable

Impact

Timeline

  1. CVE published
  2. First seen by cve.now

Evidence 7

Questions about CVE-2026-134803

Is CVE-2026-134803 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: cve.now feed data

What does this mean?

DBHub's read-only mode can be bypassed. An MCP client limited to read-only execute_sql can run write and DDL statements, such as dropping tables or modifying data, by hiding statements inside backslash-escaped strings that the parser misreads.

Source: vulncheck.com

Which versions are affected by CVE-2026-134803?

@bytebase/dbhub (npm): before 1.7.0.

Source: cve.now feed data

Am I affected, and how do I check?

DBHub versions before 1.7.0 (npm package @bytebase/dbhub) are affected, in setups where MCP clients are restricted to read-only execute_sql and the target database is MySQL, MariaDB, or PostgreSQL. To check a setup, look at the installed version of the @bytebase/dbhub package.

Source: vulncheck.com

How do I fix CVE-2026-134803?

Upgrade DBHub to version 1.7.0, which is the fixed version. The advisory names no patch IDs or workaround.

Source: vulncheck.com

No corrections so far. Something wrong on this page? Report an error.