{"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-48017 exists.","fix":"Upgrade dbgate-api to 7.1.9 or later.","what":"CVE-2026-48017 is a high-severity code injection vulnerability in dbgate, published on 15 Jun 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-48017 and fix it if it is affected.\n\nWhat it is: CVE-2026-48017 is a high-severity code injection vulnerability in dbgate, published on 15 Jun 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-48017 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-48017/ (Markdown: https://insights.sbomify.com/CVE-2026-48017/index.md)","id":"CVE-2026-48017","markdown":"https://insights.sbomify.com/CVE-2026-48017/index.md","name":"CVE-2026-48017","record":{"aliases":["GHSA-hv83-ggc4-v385"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Database management tool","requires_auth":"low_privilege","summary":"Authenticated users can inject JavaScript into the loadReader endpoint to execute arbitrary code and commands on the DbGate server.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"DbGate is cross-platform database manager. In versions 7.1.8 and prior, the POST /runners/load-reader endpoint in DbGate accepts a functionName parameter that is directly interpolated into a JavaScript code template without any sanitization or validation. An authenticated user (with basic access, no special permissions required) can inject arbitrary JavaScript code that executes on the server with full process privileges, bypassing the require=null sandbox restriction. An authenticated user with basic access (no admin role, no run-shell-script permission required) can: execute arbitrary OS commands on the DbGate server with the privileges of the Node.js process, read/write any file accessible to the process, pivot to connected databases by reading connection credentials from DbGate's storage, and compromise the host system - in Docker deployments, this typically means root access within the container. Version 7.1.9 contains a patch.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2026-06-13","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-06-13T07:10:52Z","kind":"github_poc","ref":"https://github.com/romain-deperne/CVE-2026-48017","stars":0,"title":"Remote Code Execution in DbGate via functionName injection in the loadReader endpoint — CVSS 8.8"}],"tier":"weaponised"},"has_fix":true,"headline":"DbGate: Remote Code Execution via functionName injection in loadReader endpoint","id":"CVE-2026-48017","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":"CRLF injection in Laravel's default email rule enables SMTP smuggling and spoofed-mail relay","id":"CVE-2026-48019"},"packages":[{"ecosystem":"npm","fixed":["7.1.9"],"introduced":["0"],"last_affected":[],"package":"dbgate-api","purl":null,"source":"GHSA-hv83-ggc4-v385"},{"ecosystem":"npm","fixed":["7.1.9"],"introduced":["0"],"last_affected":[],"package":"dbgate-api","purl":"pkg:npm/dbgate-api","source":"GHSA-hv83-ggc4-v385"}],"prev":{"headline":"Shopware: Unauthorized Payment Trigger for Foreign Orders via /store-api/handle-payment","id":"CVE-2026-48016"},"products":["dbgate"],"published":"2026-06-15","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":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-07-23","vendors":["dbgate"]},"summary":"Authenticated users can inject JavaScript into the loadReader endpoint to execute arbitrary code and commands on the DbGate server.","url":"https://insights.sbomify.com/CVE-2026-48017/"}