{"answers":{"affected":"2 open source packages ship an affected version, including dbgate-api.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-47670 exists.","fix":"Upgrade dbgate-api to 7.1.9 or later.","what":"CVE-2026-47670 is a critical code injection vulnerability in dbgate, published on 23 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-47670 and fix it if it is affected.\n\nWhat it is: CVE-2026-47670 is a critical code injection vulnerability in dbgate, published on 23 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-47670 exists.\n\nAffected packages and fixed versions:\n- dbgate-api (npm): affected all versions; fixed in 7.1.9\n- dbgate-api (npm): affected all versions; fixed in 7.1.9\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-47670/ (Markdown: https://insights.sbomify.com/CVE-2026-47670/index.md)","id":"CVE-2026-47670","markdown":"https://insights.sbomify.com/CVE-2026-47670/index.md","name":"CVE-2026-47670","record":{"aliases":["GHSA-wm5r-5qp3-5vxf"],"analysis":{"component_type":"desktop_application","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"DbGate database manager","requires_auth":"low_privilege","summary":"Authenticated attackers can execute arbitrary OS commands as root in DbGate by exploiting unsanitized input in the loadReader endpoint.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":9.4,"severity":"critical","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","version":"4.0"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"},{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"description":"DbGate is cross-platform database manager. Versions 7.1.8 and prior are vulnerable to authenticated Remote Code Execution (RCE). Any user with valid DbGate credentials can execute arbitrary OS commands as root by exploiting an unsanitized `functionName` parameter in the `/runners/load-reader` endpoint. The `require = null` mitigation is trivially bypassed via dynamic `import()`. Version 7.1.9 contains a patch.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2026-06-18","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":1,"refs":[{"date":"2026-06-18T20:12:54Z","kind":"github_poc","ref":"https://github.com/error-inside/CVE-2026-47670","stars":0,"title":"Authenticated Remote Code Execution via loadReader functionName code injection in DbGate"},{"date":null,"kind":"nuclei","ref":"http/cves/2026/CVE-2026-47670.yaml","stars":null,"title":"DbGate - Remote Code Execution via Dynamic Import Bypass"}],"tier":"weaponised"},"has_fix":true,"headline":"DbGate Vulnerable to Authenticated Remote Code Execution via loadReader functionName code injection","id":"CVE-2026-47670","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"Nhost CLI local configserver allows cross-origin unauthenticated read/write access to local development configuration and secrets","id":"CVE-2026-47671"},"packages":[{"ecosystem":"npm","fixed":["7.1.9"],"introduced":["0"],"last_affected":[],"package":"dbgate-api","purl":null,"source":"GHSA-wm5r-5qp3-5vxf"},{"ecosystem":"npm","fixed":["7.1.9"],"introduced":["0"],"last_affected":[],"package":"dbgate-api","purl":"pkg:npm/dbgate-api","source":"GHSA-wm5r-5qp3-5vxf"}],"prev":{"headline":"DbGate: Zip Slip in archive/unzip allows arbitrary file write leading to RCE","id":"CVE-2026-47669"},"products":["dbgate"],"published":"2026-07-23","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)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-07-24","vendors":["dbgate"]},"summary":"Authenticated attackers can execute arbitrary OS commands as root in DbGate by exploiting unsanitized input in the loadReader endpoint.","url":"https://insights.sbomify.com/CVE-2026-47670/"}