{"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-61742 exists.","fix":"Upgrade @bytebase/dbhub to 0.22.5 or later.","what":"CVE-2026-61742 is a critical server-side request forgery 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-61742 and fix it if it is affected.\n\nWhat it is: CVE-2026-61742 is a critical server-side request forgery 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-61742 exists.\n\nAffected packages and fixed versions:\n- @bytebase/dbhub (npm): affected all versions; fixed in 0.22.5\n- @bytebase/dbhub (npm): affected all versions; fixed in 0.22.5\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-61742/ (Markdown: https://insights.sbomify.com/CVE-2026-61742/index.md)","id":"CVE-2026-61742","markdown":"https://insights.sbomify.com/CVE-2026-61742/index.md","name":"CVE-2026-61742","record":{"aliases":["GHSA-fm8p-53ww-hf6w"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":true,"product_category":"Database MCP server","requires_auth":"none","summary":"Attackers can use DNS rebinding to execute SQL commands via the HTTP transport, allowing unauthorized database access.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":9.3,"severity":"critical","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-346","name":"Origin Validation Error"},{"id":"CWE-306","name":"Missing Authentication for Critical Functionality"}],"description":"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.","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":"DBHub HTTP transport DNS rebinding allows unauthenticated browser-origin SQL execution","id":"CVE-2026-61742","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"ssrf","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"Chartbrew: DNS Rebinding SSRF Bypass in Outbound Request Validation","id":"CVE-2026-61743"},"packages":[{"ecosystem":"npm","fixed":["0.22.5"],"introduced":["0"],"last_affected":[],"package":"@bytebase/dbhub","purl":null,"source":"GHSA-fm8p-53ww-hf6w"},{"ecosystem":"npm","fixed":["0.22.5"],"introduced":["0"],"last_affected":[],"package":"@bytebase/dbhub","purl":"pkg:npm/%40bytebase/dbhub","source":"GHSA-fm8p-53ww-hf6w"}],"prev":{"headline":"http4s-scala-xml has an XML External Entity (XXE) processing issue","id":"CVE-2026-61741"},"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":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-09-24","vendors":["bytebase"]},"summary":"Attackers can use DNS rebinding to execute SQL commands via the HTTP transport, allowing unauthorized database access.","url":"https://insights.sbomify.com/CVE-2026-61742/"}