Arbitrary Code Injection Affecting dbgate-web package, versions >=7.0.0-alpha.10 <7.1.5


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.02% (7th percentile)

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-DBGATEWEB-15915631
  • published6 Apr 2026
  • disclosed2 Apr 2026
  • creditngocnn97

Introduced: 2 Apr 2026

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

How to fix?

Upgrade dbgate-web to version 7.1.5 or higher.

Overview

dbgate-web is a This package is used internally by DbGate

Affected versions of this package are vulnerable to Arbitrary Code Injection through the FontIcon rendering path in packages/web/src/icons/FontIcon.svelte. An attacker can execute arbitrary JavaScript in a victim’s browser, or potentially achieve local code execution in the Electron desktop app, by supplying a malicious applicationIcon value. In the Electron desktop app, the unsafe renderer configuration (nodeIntegration: true, contextIsolation: false) allows injected scripts to access Node/Electron APIs.

**Notes**

  • The attacker must be able to create, modify, or import an application definition that DbGate later loads from disk.
  • The payload is triggered when a user opens a view that renders the matching database/application entry and passes applicationIcon through the icon rendering chain.

PoC

{
  "applicationName": "XSS PoC",
  "applicationIcon": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"18\" height=\"18\"><circle cx=\"9\" cy=\"9\" r=\"8\" fill=\"red\"/></svg><img src=x onerror=\"alert('xss-fired')\">",
  "usageRules": [
    {
      "serverHostsList": ["postgres"],
      "databaseNamesList": ["dbgate"]
    }
  ]
}

CVSS Base Scores

version 4.0
version 3.1