CVE-2026-34725 is a high-severity (CVSS 8.2) Cross-site Scripting (XSS) vulnerability in dbgate-web. A fix is available for dbgate-web — see the affected versions and patch details below.
dbgate-web: Stored XSS in applicationIcon leads to potential RCE in Electron due to unsafe renderer configuration
Exploitation Status
Proof-of-concept exploit code exists
- CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
- A successful exploit gives an attacker total control of the affected component, not partial access.
Exploitation and automatability from CISA’s SSVC triage for CVE-2026-34725.
EPSS Exploitation Probability
EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.
How urgent is this, really
CVE-2026-34725 plotted by exploitation likelihood (EPSS) against impact (CVSS). The shaded corner — EPSS 50%+ and CVSS 7.0+ — is where this CVE doesn't sit, though severity or exploitability alone can still warrant action.
Where this sits among everything scored
Of 377,636 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Real counts from FIRST.org, not a sample — log-scaled since the landscape is heavily right-skewed.
Real-World Exposure
How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.
dbgate-webnpmDescription
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 because the Electron renderer is configured with nodeIntegration: true and contextIsolation: false. If a victim imports or saves a malicious application definition and later opens a UI view that renders the icon, the XSS can access Node/Electron APIs and may result in local code execution on the victim machine.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | dbgate-web | ≥ 7.0.0&&< 7.1.5 | 7.1.5npm install dbgate-web@7.1.5 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for dbgate-web, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update dbgate-web to 7.1.5 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-34725 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like CVE-2026-34725 can be triaged on real exposure rather than presence alone.
Tailored to CVE-2026-34725. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is CVE-2026-34725 in your dependencies?
O3 Security finds CVE-2026-34725 across npm dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.