CVE-2026-34725
dbgate-web: Stored XSS in applicationIcon leads to potential RCE in Electron due to unsafe renderer configuration
DbGate is cross-platform database manager. From version 7.0.0 to before version 7.1.5, a stored XSS vulnerability exists in DbGate because attacker-controlled SVG icon strings are rendered as raw HTML without sanitization. In the web UI this allows script execution in another user's browser; in the Electron desktop app this can escalate to local code execution because Electron is configured with nodeIntegration: true and contextIsolation: false. This issue has been patched in version 7.1.5.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
8.3
dbgate-web: Stored XSS in applicationIcon leads to potential RCE in Electron due to unsafe renderer configuration
DbGate is cross-platform database manager. From version 7.0.0 to before version 7.1.5, a stored XSS vulnerability exists in DbGate because attacker-controlled SVG icon strings are rendered as raw HTML without sanitization. In the web UI this allows script execution in another user's browser; in the Electron desktop app this can escalate to local code execution because Electron is configured with nodeIntegration: true and contextIsolation: false. This issue has been patched in version 7.1.5.
- Record
CVE-2026-34725- CVSS 3.1
- 8.3 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H - Weakness
- CWE-94, CWE-79
- Updated
- 2026-11-02
EUVDEUVD-2026-18472
8.3
DbGate is cross-platform database manager. From version 7.0.0 to before version 7.1.5, a stored XSS vulnerability exists in DbGate because attacker-controlled SVG icon strings are rendered as raw HTML without sanitization. In the web UI this allows script execution in another user's browser; in the Electron desktop app this can escalate to local code execution because Electron is configured with nodeIntegration: true and contextIsolation: false. This issue has been patched in version 7.1.5.
- Record
EUVD-2026-18472- CVSS 3.1
- 8.3 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-35xm-qvjg-8m42
8.2
dbgate-web: Stored XSS in applicationIcon leads to potential RCE in Electron due to unsafe renderer configuration
Summary
A stored XSS vulnerability exists in DbGate because attacker-controlled SVG icon strings are rendered as raw HTML without sanitization. In the web UI this allows script execution in another user's browser; in the Electron desktop app this can escalate to local code execution because Electron is configured with nodeIntegration: true and contextIsolation: false.
Details
The issue is in the icon rendering path:
packages/web/src/icons/FontIcon.svelte- treats any icon string starting with
<svgas inline SVG - renders it with
{@html iconValue}without sanitization
- treats any icon string starting with
packages/api/src/controllers/apps.js- loads app definitions from disk and returns
applicationIconto clients unchanged
- loads app definitions from disk and returns
packages/web/src/appobj/DatabaseAppObject.svelte- passes
applicationIconintoadditionalIcons
- passes
packages/web/src/appobj/AppObjectCore.svelte- renders those icons through
<FontIcon icon={ic.icon}>
- renders those icons through
This makes applicationIcon a stored XSS sink.
An attacker who can create or modify an app definition can store a payload in applicationIcon. When another user views a matching database/app entry, the payload executes in that user's session.
The impact is especially severe in Electron desktop because:
app/src/electron.jsnodeIntegration: truecontextIsolation: false
With that configuration, JavaScript gained through XSS can access Node/Electron APIs, making local code execution possible.
PoC
This was reproduced by creating an app definition with a malicious applicationIcon and making it match a visible database.
Example payload:
{
"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"]
}
]
}
After saving this app definition and opening the UI where the matching database/app icon is rendered, the JavaScript executes.
RCE In Electron app:
- Prepare an attacker-controlled application JSON file with a malicious
applicationIconvalue. - Set
usageRulesso the application matches a database the victim is likely to view. - Example payload:
{
"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=\"require('fs').writeFileSync(require('path').join(process.cwd(),'xss-rce-poc.txt'),'poc')\">",
"usageRules": [
{
"serverHostsRegex": ".*",
"databaseNamesRegex": ".*"
}
]
}
- Deliver this JSON file to the victim as an application definition file.
- The victim imports or saves the file into DbGate's apps storage, for example by opening/creating an application file and saving the attacker-controlled JSON content.
- DbGate later loads that app definition through apps/get-all-apps.
- When the victim opens a UI view that renders the matching database/application icon, the applicationIcon value is passed into FontIcon.
- FontIcon detects that the string starts with <svg and renders it via raw {@html}.
- The injected HTML executes in the Electron renderer process.
- Because DbGate Desktop uses nodeIntegration: true and contextIsolation: false, the payload can access Node APIs and write the marker file xss-rce-poc.txt
This demonstrates that a malicious saved application JSON file can become stored XSS in the UI and escalate to local code execution in Electron.
Impact
Web app If an attacker can place a malicious application definition where another user will load it, arbitrary JavaScript executes in the victim's browser session. This can lead to token theft, session hijacking, and performing privileged actions as the victim inside DbGate.
Electron desktop app In the desktop app, the impact is more severe…
- Record
GHSA-35xm-qvjg-8m42- CVSS 3.1
- 8.2 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H - Weakness
- CWE-79, CWE-94
- Updated
- 2026-11-02
NVD
8.2
DbGate is cross-platform database manager. From version 7.0.0 to before version 7.1.5, a stored XSS vulnerability exists in DbGate because attacker-controlled SVG icon strings are rendered as raw HTML without sanitization. In the web UI this allows script execution in another user's browser; in the Electron desktop app this can escalate to local code execution because Electron is configured with nodeIntegration: true and contextIsolation: false. This issue has been patched in version 7.1.5.
- Record
CVE-2026-34725- CVSS 3.1
- 8.2 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H - Weakness
- CWE-79, CWE-94
- Updated
- 2026-11-02
OSV
8.2
dbgate-web: Stored XSS in applicationIcon leads to potential RCE in Electron due to unsafe renderer configuration
DbGate is cross-platform database manager. From version 7.0.0 to before version 7.1.5, a stored XSS vulnerability exists in DbGate because attacker-controlled SVG icon strings are rendered as raw HTML without sanitization. In the web UI this allows script execution in another user's browser; in the Electron desktop app this can escalate to local code execution because Electron is configured with nodeIntegration: true and contextIsolation: false. This issue has been patched in version 7.1.5.
- Record
CVE-2026-34725- CVSS 3.1
- 8.2 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H - Weakness
- CWE-79, CWE-94
- Updated
- 2026-11-02
OSVGHSA-35xm-qvjg-8m42
8.2
dbgate-web: Stored XSS in applicationIcon leads to potential RCE in Electron due to unsafe renderer configuration
Summary
A stored XSS vulnerability exists in DbGate because attacker-controlled SVG icon strings are rendered as raw HTML without sanitization. In the web UI this allows script execution in another user's browser; in the Electron desktop app this can escalate to local code execution because Electron is configured with nodeIntegration: true and contextIsolation: false.
Details
The issue is in the icon rendering path:
packages/web/src/icons/FontIcon.svelte- treats any icon string starting with
<svgas inline SVG - renders it with
{@html iconValue}without sanitization
- treats any icon string starting with
packages/api/src/controllers/apps.js- loads app definitions from disk and returns
applicationIconto clients unchanged
- loads app definitions from disk and returns
packages/web/src/appobj/DatabaseAppObject.svelte- passes
applicationIconintoadditionalIcons
- passes
packages/web/src/appobj/AppObjectCore.svelte- renders those icons through
<FontIcon icon={ic.icon}>
- renders those icons through
This makes applicationIcon a stored XSS sink.
An attacker who can create or modify an app definition can store a payload in applicationIcon. When another user views a matching database/app entry, the payload executes in that user's session.
The impact is especially severe in Electron desktop because:
app/src/electron.jsnodeIntegration: truecontextIsolation: false
With that configuration, JavaScript gained through XSS can access Node/Electron APIs, making local code execution possible.
PoC
This was reproduced by creating an app definition with a malicious applicationIcon and making it match a visible database.
Example payload:
{
"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"]
}
]
}
After saving this app definition and opening the UI where the matching database/app icon is rendered, the JavaScript executes.
RCE In Electron app:
- Prepare an attacker-controlled application JSON file with a malicious
applicationIconvalue. - Set
usageRulesso the application matches a database the victim is likely to view. - Example payload:
{
"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=\"require('fs').writeFileSync(require('path').join(process.cwd(),'xss-rce-poc.txt'),'poc')\">",
"usageRules": [
{
"serverHostsRegex": ".*",
"databaseNamesRegex": ".*"
}
]
}
- Deliver this JSON file to the victim as an application definition file.
- The victim imports or saves the file into DbGate's apps storage, for example by opening/creating an application file and saving the attacker-controlled JSON content.
- DbGate later loads that app definition through apps/get-all-apps.
- When the victim opens a UI view that renders the matching database/application icon, the applicationIcon value is passed into FontIcon.
- FontIcon detects that the string starts with <svg and renders it via raw {@html}.
- The injected HTML executes in the Electron renderer process.
- Because DbGate Desktop uses nodeIntegration: true and contextIsolation: false, the payload can access Node APIs and write the marker file xss-rce-poc.txt
This demonstrates that a malicious saved application JSON file can become stored XSS in the UI and escalate to local code execution in Electron.
Impact
Web app If an attacker can place a malicious application definition where another user will load it, arbitrary JavaScript executes in the victim's browser session. This can lead to token theft, session hijacking, and performing privileged actions as the victim inside DbGate.
Electron desktop app In the desktop app, the impact is more severe…
- Record
GHSA-35xm-qvjg-8m42- CVSS 3.1
- 8.2 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H - Weakness
- CWE-79, CWE-94
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
dbgate-webnpm |
7.0.0 up to 7.1.5 | 7.1.5 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-34725 is a high vulnerability (CVSS 8.3) in Dbgate, published April 1, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.18%, the 6th percentile. Fixed in dbgate-web 7.1.5.
References
github.com/dbgate/dbgate/security/advisories/GHSA-35xm-qvjg-8m42
github.com/dbgate/dbgate/commit/a7d2ed11f3f3d4dfb5d2e4e5467dedafa5fa947e
github.com/dbgate/dbgate/releases/tag/v7.1.5
nvd.nist.gov/vuln/detail/CVE-2026-34725
github.com/advisories/GHSA-35xm-qvjg-8m42
github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34725.json
github.com/dbgate/dbgate
Left out here: the rest of 2 source descriptions. The JSON record has them.