Quick answers
- Is CVE-2026-47670 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-47670 being exploited in the wild.
- How severe is CVE-2026-47670?
- Critical severity, with a CVSS score of 4, published 23 July 2026.
- Which products and versions are affected?
- DbGate <= 7.1.8; dbgate-api (npm) <= 7.1.8, SEMVER:introduced=0,fixed=7.1.9.
- Is there a fix for CVE-2026-47670?
- Yes. dbgate-api (npm): upgrade to 7.1.9 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-47670 attacked?
- It is attacked over the network, in a network appliance.
- Am I affected by CVE-2026-47670?
- Check whether you run DbGate or dbgate-api (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- dbgate-api (npm): upgrade to 7.1.9 or later
npm install dbgate-api@7.1.9
Technical details
An OS command injection vulnerability exists in DbGate's `/runners/load-reader` endpoint due to improper neutralization of the `functionName` parameter. The application interpolates this parameter directly into a dynamically generated JavaScript script template. An attacker can inject a newline character to break out of the template and execute arbitrary JavaScript. Although a previous mitigation attempted to disable the `require` function, attackers can bypass this using dynamic `import()` calls to load the `child_process` module. This allows for arbitrary command execution with the privileges of the application process (often root in Docker environments). The issue is resolved in version 7.1.9 by implementing validation for function and file names.
Affected products
- DbGate DbGate <= 7.1.8
Identifiers
- CVE-2026-47670
- GHSA-wm5r-5qp3-5vxf
Timeline
- 2026-05-20: advisory: Initial security advisory published (GHSA-wm5r-5qp3-5vxf)
- 2026-07-23: disclosed: CVE-2026-47670 published to NVD
- 2026-04-22: patched: Version 7.1.9 released with security fixes