{"answers":{"affected":"2 open source packages ship an affected version, including @bytebase/dbhub.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-61788 exists.","fix":"Upgrade @bytebase/dbhub to 0.22.6 or later.","what":"CVE-2026-61788 is a high-severity vulnerability in bytebase dbhub, published on 24 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-61788 and fix it if it is affected.\n\nWhat it is: CVE-2026-61788 is a high-severity vulnerability in bytebase dbhub, published on 24 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-61788 exists.\n\nAffected packages and fixed versions:\n- @bytebase/dbhub (npm): affected all versions; fixed in 0.22.6\n- @bytebase/dbhub (npm): affected all versions; fixed in 0.22.6\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-61788/ (Markdown: https://insights.sbomify.com/CVE-2026-61788/index.md)","id":"CVE-2026-61788","markdown":"https://insights.sbomify.com/CVE-2026-61788/index.md","name":"CVE-2026-61788","record":{"aliases":["GHSA-mwwr-p57h-56pf"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["code_execution","data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Database MCP server","requires_auth":"none","summary":"Attackers can bypass read-only restrictions in DBHub to execute arbitrary code or access sensitive data via unauthenticated network requests.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.4,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"},{"id":"CWE-636","name":"Not Failing Securely"},{"id":"CWE-184","name":"Incomplete List of Disallowed Inputs"}],"description":"DBHub is a database MCP server for Postgres, MySQL, SQL Server, Oracle, MariaDB, SQLite. Prior to version 0.22.6, setting `readonly = true` on the `execute_sql` tool does not make the connection read-only. The connectors are written to set PostgreSQL `default_transaction_read_only=on` (and open SQLite in `readOnly` mode), but that code is gated on a config value that is never populated, so it never runs. The only thing left enforcing read-only is a classifier that inspects the first keyword of each statement. Any `SELECT` that writes or has side effects through a function call passes it. With an ordinary role this allows sequence tampering; with a privileged role it allows writing arbitrary files on the server (`lo_export`), reading arbitrary host files (`pg_read_file`), and remote code execution (`dblink` + `COPY ... TO PROGRAM`). The HTTP transport is unauthenticated and binds to `0.0.0.0` by default, so this is reachable by any network caller of `/mcp`. Version 0.22.6 patches the issue.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"@bytebase/dbhub's read-only mode does not prevent database writes","id":"CVE-2026-61788","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"security_feature_bypass","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"Weblate: Team-enforced 2FA is bypassed for global permissions","id":"CVE-2026-61790"},"packages":[{"ecosystem":"npm","fixed":["0.22.6"],"introduced":["0"],"last_affected":[],"package":"@bytebase/dbhub","purl":null,"source":"GHSA-mwwr-p57h-56pf"},{"ecosystem":"npm","fixed":["0.22.6"],"introduced":["0"],"last_affected":[],"package":"@bytebase/dbhub","purl":"pkg:npm/%40bytebase/dbhub","source":"GHSA-mwwr-p57h-56pf"}],"prev":{"headline":"xhtml-purifier has HTML attribute-injection (sanitizer bypass) that leads to XSS","id":"CVE-2026-61784"},"products":["dbhub"],"published":"2026-09-24","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-09-29","vendors":["bytebase"]},"summary":"Attackers can bypass read-only restrictions in DBHub to execute arbitrary code or access sensitive data via unauthenticated network requests.","url":"https://insights.sbomify.com/CVE-2026-61788/"}