{"answers":{"affected":"2 open source packages ship an affected version, including dbgate-serve.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-47668 exists.","fix":"Upgrade dbgate-serve to 7.1.9 or later.","what":"CVE-2026-47668 is a critical code injection vulnerability in dbgate, published on 23 Jul 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-47668 and fix it if it is affected.\n\nWhat it is: CVE-2026-47668 is a critical code injection vulnerability in dbgate, published on 23 Jul 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-47668 exists.\n\nAffected packages and fixed versions:\n- dbgate-serve (npm): affected all versions; fixed in 7.1.9\n- dbgate-serve (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-47668/ (Markdown: https://insights.sbomify.com/CVE-2026-47668/index.md)","id":"CVE-2026-47668","markdown":"https://insights.sbomify.com/CVE-2026-47668/index.md","name":"CVE-2026-47668","record":{"aliases":["GHSA-8v3q-9vmx-36vc"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Database management tool","requires_auth":"none","summary":"Unauthenticated attackers can execute arbitrary code by injecting JavaScript into the functionName parameter of DbGate's JSON script runner.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":10,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-1188","name":"Initialization of a Resource with an Insecure Default"}],"description":"DbGate is cross-platform database manager. In versions 7.1.8 and prior, DbGate's JSON script runner (`POST /runners/start`) allows remote code execution via code injection in the `functionName` parameter of JSON script `assign` commands. The `functionName` value is interpolated directly into dynamically generated JavaScript source code via string concatenation. The generated code is then executed in a forked Node.js child process. Version 7.1.9 contains a patch.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2026-05-26","github_poc":2,"max_poc_stars":6,"metasploit":0,"nuclei":1,"refs":[{"date":"2026-05-26T14:47:03Z","kind":"github_poc","ref":"https://github.com/Nxploited/CVE-2026-47668","stars":6,"title":"DbGate Unauthenticated Remote Code Execution"},{"date":"2026-07-31T14:57:34Z","kind":"github_poc","ref":"https://github.com/s-vx/CVE-2026-47668","stars":0,"title":"Unauthenticated RCE in DBGate \u003c= 7.1.8"},{"date":null,"kind":"nuclei","ref":"http/cves/2026/CVE-2026-47668.yaml","stars":null,"title":"DbGate - Remote Code Execution via Anonymous JWT"}],"tier":"weaponised"},"has_fix":true,"headline":"DbGate: Unauthenticated Remote Code Execution via JSON Script Runner","id":"CVE-2026-47668","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"DbGate: Zip Slip in archive/unzip allows arbitrary file write leading to RCE","id":"CVE-2026-47669"},"packages":[{"ecosystem":"npm","fixed":["7.1.9"],"introduced":["0"],"last_affected":[],"package":"dbgate-serve","purl":null,"source":"GHSA-8v3q-9vmx-36vc"},{"ecosystem":"npm","fixed":["7.1.9"],"introduced":["0"],"last_affected":[],"package":"dbgate-serve","purl":"pkg:npm/dbgate-serve","source":"GHSA-8v3q-9vmx-36vc"}],"prev":{"headline":"CImg Library: Uncontrolled Memory Allocation and Memory Leak in `_load_analyze()` via Crafted NIfTI/Analyze Header","id":"CVE-2026-47667"},"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":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-07-24","vendors":["dbgate"]},"summary":"Unauthenticated attackers can execute arbitrary code by injecting JavaScript into the functionName parameter of DbGate's JSON script runner.","url":"https://insights.sbomify.com/CVE-2026-47668/"}