Arbitrary Code Injection Affecting dbgate-api package, versions <7.1.9


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-DBGATEAPI-17223766
  • published7 Jun 2026
  • disclosed21 Jun 2026
  • creditRomain Deperne

Introduced: 7 Jun 2026

NewCVE-2026-48017  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade dbgate-api to version 7.1.9 or higher.

Overview

dbgate-api is an Allows run DbGate data-manipulation scripts.

Affected versions of this package are vulnerable to Arbitrary Code Injection in the loadReader() function in runners.js. The functionName parameter can be injected with arbitrary JavaScript, which is executed with the privileges of the running process. This is only exploitable if the attacker has basic authenticated access to the application.

CVSS Base Scores

version 4.0
version 3.1