{"id":"CVE-2026-39846","published":"2026-04-07T21:34:28Z","modified":"2026-04-08T15:23:37Z","title":"SiYuan affected by Remote Code Execution in the Electron desktop client via stored XSS in synced table captions","vendor":"siyuan-note","product":"siyuan","tier":"tail","description":{"text":"SiYuan is a personal knowledge management system. Prior to 3.6.4, a malicious note synced to another user can trigger remote code execution in the SiYuan Electron desktop client. The root cause is that table caption content is stored without safe escaping and later unescaped into rendered HTML, creating a stored XSS sink. Because the desktop renderer runs with nodeIntegration enabled and contextIsolation disabled, attacker-controlled JavaScript executes with access to Node.js APIs. In practice, an attacker can import a crafted note into a synced workspace, wait for the victim to sync, and achieve code execution when the victim opens the note. This vulnerability is fixed in 3.6.4.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00572,"percentile":0.47946,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-phhp-9rm9-6gr2","tags":["x_refsource_CONFIRM"]}],"priority":{"score":16.0,"factors":[{"name":"EPSS percentile","points":9.59},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"siyuan-note","affectedVersions":[{"vendor":"siyuan-note","product":"siyuan","versions":["< 3.6.4"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-04-08T15:23:34.478628Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/siyuan-note/siyuan/kernel","vulnerableRanges":["<0.0.0-20260407035653-2f416e5253f1"],"patched":["0.0.0-20260407035653-2f416e5253f1"],"from":["GHSA-phhp-9rm9-6gr2","GO-2026-5540"],"provenance":"source"}],"summary":{"text":"SiYuan's Electron desktop client has a stored cross-site scripting flaw in how table caption content is rendered, because caption text is stored without safe escaping and later unescaped into HTML. An attacker who has a crafted note synced into a shared workspace can get JavaScript running in the victim's renderer, which has Node.js API access, once the victim syncs and opens that note, requiring user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:24:24Z"},"euvd":{"id":"EUVD-2026-19973","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-56397","published":"2026-06-21","fixed":"0.0.0-20260317012524-fe4523fff2c8","kev":false},{"cve":"CVE-2026-34585","published":"2026-03-31","fixed":"0.0.0-20260329142331-918d1bd9f967","kev":false},{"cve":"CVE-2026-34605","published":"2026-03-31","fixed":"0.0.0-20260330031106-f09953afc57a","kev":false,"link":{"from":"CVE-2026-34605","to":"CVE-2026-39846","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/siyuan-note/siyuan/kernel","fromFixed":"0.0.0-20260330031106-f09953afc57a","toFixed":"0.0.0-20260407035653-2f416e5253f1","daysApart":7}]}},{"cve":"CVE-2026-39846","published":"2026-04-07","fixed":"0.0.0-20260407035653-2f416e5253f1","kev":false},{"cve":"CVE-2026-40107","published":"2026-04-09","fixed":"0.0.0-20260407035653-2f416e5253f1","kev":false},{"cve":"CVE-2026-40259","published":"2026-04-16","fixed":"0.0.0-20260407035653-2f416e5253f1","kev":false},{"cve":"CVE-2026-40922","published":"2026-04-16","fixed":"0.0.0-20260414013942-62eed37a3263","kev":false}],"package":"Go:github.com/siyuan-note/siyuan/kernel"}}