CVE-2026-61789
MEDIUM 6.1 UPDATED SOURCE DATASource catalogue and publisher evidence; linked resources have not been executed or independently validated by Vulnpedia.
DBHub is a database MCP server for Postgres, MySQL, SQL Server, Oracle, MariaDB, SQLite. Prior to 0.22.6, read-only SQL validation can be bypassed on the MySQL and MariaDB connectors. In `src/utils/sql-parser.ts`, `scanSingleLineComment` treats every double dash as a comment start, whereas MySQL and MariaDB require following whitespace, a control character, or the end of the line. The read-only check in `src/tools/execute-sql.ts` validates split statements with `isReadOnlySQL`, but `src/connectors/mysql/index.ts` and `src/connectors/mariadb/index.ts` execute the original string with `multipleStatements` enabled. A double dash followed by a non-whitespace character can therefore hide a subsequent write or destructive DDL statement from the validator while the database interprets the dashes as minus operators and executes both statements. Anyone able to influence the assistant's SQL, including through prompt injection in content the assistant reads, can bypass read-only mode to modify or drop database data, subject to the database account's privileges. PostgreSQL is not affected by this path because its double-dash parsing agrees with the checker and its connector executes individual split statements. This issue is fixed in version 0.22.6.
Current sources show no confirmed exploitation or catalogued public PoC. Missing or low probability estimates do not establish safety. Track for changes.
Exploitation likelihood
0.4%chance of exploitation in 30 days · 33rd percentile
Impact if exploited
6.1CVSS 4.0 · MEDIUM · CNA
- ConfidentialityNone
- IntegrityHigh
- AvailabilityHigh
What an attacker needs
- ✓Access: Reachable over the network — no local access needed
- ✓Privileges: No account or privileges required
- ⚠User interaction: Succeeds with passive user activity
- ✓Complexity: No special conditions — reliably repeatable
- ⚠Requirements: Specific conditions must be present
✓ lowers the bar for an attacker · ⚠ raises it
Proof of concept
No public PoC is currently catalogued.
Search for new PoCs
Search GitHub now — results may be empty or unverified.
Supported CVE and PoC feeds are scheduled every 30 minutes, including for older CVEs. Other enrichment runs daily or weekly; source availability can delay updates. A later release appears after a tracked source lists it and a refresh succeeds.
Data snapshot:
Weakness (CWE)
- CWE-436: : Interpretation Conflict
- CWE-863: : Incorrect Authorization
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
References and research data (JSON) · Change history
Packages and version ranges
Each advisory describes its own package and affected ranges. A boundary applies to that range; it is not a universal upgrade recommendation.
@bytebase/dbhub npm
pkg:npm/%40bytebase/dbhub
SEMVER range- All earlier versions (introduced 0)
- Fixed boundary (excluded): 0.22.6
GitHub Advisory Database · GHSA-j656-3hf2-fvjc · Updated 2026-11-02T18:15:06.081593729ZAdditional upstream package constraints
{ "database": { "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-j656-3hf2-fvjc/GHSA-j656-3hf2-fvjc.json" } }
Unverified PoC candidates
Publisher-linked references and catalogue matches for further research. Candidate links do not establish public PoC availability. Their availability and exploit execution have not been verified by Vulnpedia.
1 candidate
- https://github.com/bytebase/dbhub/security/advisories/GHSA-j656-3hf2-fvjc
Primary CVE reference tagged exploit · CVE-2026-61789 · Unverified candidate
CVE record · CISA-ADP · Updated 2026-11-06T16:25:27.915Z
All CVSS metrics
- MEDIUM 6.1 v4.0 · CNA Primary
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N - MEDIUM 6.1 v4.0 · NVD Secondary
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/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
References
Exploit-tagged references (not proof of a PoC)
- https://github.com/bytebase/dbhub/security/advisories/GHSA-j656-3hf2-fvjc CVE record · GitHub_M · Updated 2026-10-30T16:08:24.224Z
CVE record · CISA-ADP · Updated 2026-11-06T16:25:27.915Z
NVD · CVE-2026-61789 · Updated 2026-11-06T17:18:32.840
GitHub Advisory Database · GHSA-j656-3hf2-fvjc
GitHub Advisory Database · GHSA-j656-3hf2-fvjc · Updated 2026-11-02T18:15:06.081593729Z
Advisories
- https://osv.dev/vulnerability/GHSA-j656-3hf2-fvjc GitHub Advisory Database · GHSA-j656-3hf2-fvjc
GitHub Advisory Database · GHSA-j656-3hf2-fvjc · Updated 2026-11-02T18:15:06.081593729Z - https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-114181 EUVD · EUVD-2026-114181
Technical & other
- https://github.com/bytebase/dbhub/commit/872bb338f7d31f6afe517a076ac3e3edafaaaf08 CVE record · GitHub_M · Updated 2026-10-30T16:08:24.224Z
NVD · CVE-2026-61789 · Updated 2026-11-06T17:18:32.840
GitHub Advisory Database · GHSA-j656-3hf2-fvjc
GitHub Advisory Database · GHSA-j656-3hf2-fvjc · Updated 2026-11-02T18:15:06.081593729Z - https://github.com/bytebase/dbhub/pull/342 CVE record · GitHub_M · Updated 2026-10-30T16:08:24.224Z
NVD · CVE-2026-61789 · Updated 2026-11-06T17:18:32.840
GitHub Advisory Database · GHSA-j656-3hf2-fvjc
GitHub Advisory Database · GHSA-j656-3hf2-fvjc · Updated 2026-11-02T18:15:06.081593729Z - https://github.com/bytebase/dbhub/releases/tag/v0.22.6 CVE record · GitHub_M · Updated 2026-10-30T16:08:24.224Z
NVD · CVE-2026-61789 · Updated 2026-11-06T17:18:32.840
GitHub Advisory Database · GHSA-j656-3hf2-fvjc
GitHub Advisory Database · GHSA-j656-3hf2-fvjc · Updated 2026-11-02T18:15:06.081593729Z - https://github.com/bytebase/dbhub GitHub Advisory Database · GHSA-j656-3hf2-fvjc
GitHub Advisory Database · GHSA-j656-3hf2-fvjc · Updated 2026-11-02T18:15:06.081593729Z
Sources: NVD · CVE.org · All sources and attribution · EPSS