{"id":"GHSA-35xm-qvjg-8m42","revision":null,"records":[{"revision":"76e00cf2545440648b0aa5b5e98da103","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-34725","aliases":[],"title":"dbgate-web: Stored XSS in applicationIcon leads to potential RCE in Electron due to unsafe renderer configuration","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.","state":0,"publishedAt":"2026-04-02T18:02:35.72+00:00","modifiedAt":"2026-04-03T03:55:56.991+00:00","affected":[{"ecosystem":"Vendor product","name":"dbgate","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"dbgate\",\n                    \"product\": \"dbgate\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 7.0.0, < 7.1.5\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":8.3,"severity":"HIGH"}],"references":["https://github.com/dbgate/dbgate/security/advisories/GHSA-35xm-qvjg-8m42","https://github.com/dbgate/dbgate/commit/a7d2ed11f3f3d4dfb5d2e4e5467dedafa5fa947e","https://github.com/dbgate/dbgate/releases/tag/v7.1.5"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-34725","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-34725","identifiers":["CVE-2026-34725"]},"retained":false,"historicalAffected":[]},{"revision":"7d31694e2c2d47f08a9255eca7983eb1","observedAt":"2026-11-23T15:28:13.515+00:00","statement":{"source":"euvd","id":"EUVD-2026-18472","aliases":["CVE-2026-34725"],"title":"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 thi…","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":8.3,"severity":null}],"references":["https://github.com/dbgate/dbgate/security/advisories/GHSA-35xm-qvjg-8m42","https://github.com/dbgate/dbgate/commit/a7d2ed11f3f3d4dfb5d2e4e5467dedafa5fa947e","https://github.com/dbgate/dbgate/releases/tag/v7.1.5"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-18472","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Apr 2, 2026, 6:02:35 PM","dateUpdated":"Apr 3, 2026, 3:55:56 AM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-18472","identifiers":["EUVD-2026-18472","CVE-2026-34725"]},"retained":false,"historicalAffected":[]},{"revision":"50e00ae1d9af45c0a49cce213310fcb0","observedAt":"2026-10-25T08:17:35.884+00:00","statement":{"source":"nvd","id":"CVE-2026-34725","aliases":[],"title":"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 thi…","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.","state":0,"publishedAt":"2026-04-02T18:16:33.253+00:00","modifiedAt":"2026-07-24T21:10:00.143+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":8.2,"severity":"HIGH"}],"references":["https://github.com/dbgate/dbgate/commit/a7d2ed11f3f3d4dfb5d2e4e5467dedafa5fa947e","https://github.com/dbgate/dbgate/releases/tag/v7.1.5","https://github.com/dbgate/dbgate/security/advisories/GHSA-35xm-qvjg-8m42"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-34725","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-79","CWE-94"],"productCriteria":[],"sourceDates":{"published":"2026-04-02T18:16:33.253","lastModified":"2026-07-24T21:10:00.143"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-34725","identifiers":["CVE-2026-34725"]},"retained":false,"historicalAffected":[]},{"revision":"e2053e8090c04d89adc6434303138468","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-35xm-qvjg-8m42","aliases":["CVE-2026-34725"],"title":"dbgate-web: Stored XSS in applicationIcon leads to potential RCE in Electron due to unsafe renderer configuration","description":"### Summary\nA 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`.\n\n### Details\nThe issue is in the icon rendering path:\n\n- `packages/web/src/icons/FontIcon.svelte`\n  - treats any icon string starting with `<svg` as inline SVG\n  - renders it with `{@html iconValue}` without sanitization\n- `packages/api/src/controllers/apps.js`\n  - loads app definitions from disk and returns `applicationIcon` to clients unchanged\n- `packages/web/src/appobj/DatabaseAppObject.svelte`\n  - passes `applicationIcon` into `additionalIcons`\n- `packages/web/src/appobj/AppObjectCore.svelte`\n  - renders those icons through `<FontIcon icon={ic.icon}>`\n\nThis makes `applicationIcon` a stored XSS sink.\n\nAn 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.\n\nThe impact is especially severe in Electron desktop because:\n\n- `app/src/electron.js`\n  - `nodeIntegration: true`\n  - `contextIsolation: false`\n\nWith that configuration, JavaScript gained through XSS can access Node/Electron APIs, making local code execution possible.\n\n\n### PoC\nThis was reproduced by creating an app definition with a malicious `applicationIcon` and making it match a visible database.\n\nExample payload:\n\n```json\n{\n  \"applicationName\": \"XSS PoC\",\n  \"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')\\\">\",\n  \"usageRules\": [\n    {\n      \"serverHostsList\": [\"postgres\"],\n      \"databaseNamesList\": [\"dbgate\"]\n    }\n  ]\n}\n```\n\nAfter saving this app definition and opening the UI where the matching database/app icon is rendered, the JavaScript executes.\n\nRCE In Electron app: \n1. Prepare an attacker-controlled application JSON file with a malicious `applicationIcon` value.\n2. Set `usageRules` so the application matches a database the victim is likely to view.\n3. Example payload:\n\n```json\n{\n  \"applicationName\": \"XSS PoC\",\n  \"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')\\\">\",\n  \"usageRules\": [\n    {\n      \"serverHostsRegex\": \".*\",\n      \"databaseNamesRegex\": \".*\"\n    }\n  ]\n}\n```\n\n4. Deliver this JSON file to the victim as an application definition file.\n5. 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.\n6. DbGate later loads that app definition through apps/get-all-apps.\n7. When the victim opens a UI view that renders the matching database/application icon, the applicationIcon value is passed into FontIcon.\n8. FontIcon detects that the string starts with <svg and renders it via raw {@html}.\n9. The injected HTML executes in the Electron renderer process.\n10. Because DbGate Desktop uses nodeIntegration: true and contextIsolation: false, the payload can access Node APIs and write the marker file xss-rce-poc.txt\n\nThis demonstrates that a malicious saved application JSON file can become stored XSS in the UI and escalate to local code execution in Electron.\n\n### Impact\n**Web app**\nIf 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.\n\n**Electron desktop app**\nIn 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.","state":0,"publishedAt":"2026-04-01T22:19:57+00:00","modifiedAt":"2026-04-06T17:39:23.866361+00:00","affected":[{"ecosystem":"npm","name":"dbgate-web","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"7.0.0"},{"kind":"fixed","version":"7.1.5"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/dbgate/dbgate/security/advisories/GHSA-35xm-qvjg-8m42","https://nvd.nist.gov/vuln/detail/CVE-2026-34725","https://github.com/dbgate/dbgate/commit/a7d2ed11f3f3d4dfb5d2e4e5467dedafa5fa947e","https://github.com/dbgate/dbgate","https://github.com/dbgate/dbgate/releases/tag/v7.1.5"],"sourceUrl":"https://github.com/advisories/GHSA-35xm-qvjg-8m42","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-35xm-qvjg-8m42","identifiers":["GHSA-35xm-qvjg-8m42","CVE-2026-34725"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-24T03:27:20.7872799+00:00","complete":true,"records":1792,"lastAttemptAt":"2026-11-24T03:27:20.7872799+00:00","lastSuccessAt":"2026-11-24T03:27:21.0499364+00:00","error":null,"lastVerifiedAt":"2026-11-24T03:27:21.0499365+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-f6e4a7f93ed9acd6fcb1f804a4567f7b9b16730ac126110af8d6d24176317946-408d2d62e5e1ee202bc4ddcb36cdfc4163a3b9f625f656571d5227a756b73f22","complete":true,"records":430978,"lastAttemptAt":"2026-11-24T03:25:33.3876434+00:00","lastSuccessAt":"2026-11-24T03:25:33.3654925+00:00","error":null,"lastVerifiedAt":"2026-11-24T03:25:33.3876434+00:00","snapshotPublishedAt":"2026-11-24T02:27:32+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-2befaf4fce43427b8f2de0237aab55a0","complete":false,"records":13935,"lastAttemptAt":"2026-11-24T03:37:23.6495493+00:00","lastSuccessAt":"2026-11-24T03:37:23.646+00:00","error":"403 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-24T03:37:23.646+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13203,"expectedIdentifiers":13982,"failedIdentifiers":403},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-24T03:27:20.7872799+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-24T03:27:20.7872799+00:00","lastSuccessAt":"2026-11-24T03:27:21.0510069+00:00","error":null,"lastVerifiedAt":"2026-11-24T03:27:21.0510074+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-522bbc16b5764cfda6f3fb3dab5abf4a","complete":true,"records":13947,"lastAttemptAt":"2026-11-24T03:27:46.3160841+00:00","lastSuccessAt":"2026-11-24T03:27:46.312+00:00","error":null,"lastVerifiedAt":"2026-11-24T03:27:46.312+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13982,"expectedIdentifiers":13982,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-c86437892ddabdeaf17409463a17578b1e71dd185d64061100dd57629858f6d6","complete":true,"records":10074,"lastAttemptAt":"2026-11-24T03:27:20.7062774+00:00","lastSuccessAt":"2026-11-23T22:27:19.6557603+00:00","error":null,"lastVerifiedAt":"2026-11-24T03:27:20.7062774+00:00","snapshotPublishedAt":"2026-11-23T21:33:52+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-24T03:25:33.5302894+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-24T03:25:33.5302894+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-15e801f03affdaac7ba10268556f4d0b3e1b9f897dae85fdcade5fc30d25011c","complete":true,"records":3217,"lastAttemptAt":"2026-11-24T03:27:20.7276427+00:00","lastSuccessAt":"2026-11-23T17:27:41.2539213+00:00","error":null,"lastVerifiedAt":"2026-11-24T03:27:20.7276427+00:00","snapshotPublishedAt":"2026-11-23T16:18:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-d1b862b4f381f96343318aa0a267adfdca63ec56238db239e6875bfd23f8318b","complete":true,"records":232938,"lastAttemptAt":"2026-11-24T03:27:20.5805435+00:00","lastSuccessAt":"2026-11-24T03:27:19.6143847+00:00","error":null,"lastVerifiedAt":"2026-11-24T03:27:20.5805435+00:00","snapshotPublishedAt":"2026-11-24T02:33:43+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}