{"id":"CVE-2026-54067","published":"2026-06-24T21:14:38Z","modified":"2026-06-25T15:29:48Z","title":"SiYuan: Stored XSS to RCE via CSS-snippet <style> breakout in renderSnippet()","vendor":"siyuan-note","product":"siyuan","tier":"tail","description":{"text":"SiYuan is an open-source personal knowledge management system. Prior to 3.7.0, CSS snippet body containing </style> breaks out of its surrounding <style> tag when renderSnippet() interpolates it via insertAdjacentHTML. A payload like runs arbitrary JavaScript in the renderer. On Electron desktop builds the renderer runs with nodeIntegration:true, so require('child_process') is reachable from the injected handler and the XSS chains to host RCE. Snippets sync via the workspace repository, so an attacker with write access to any synced workspace plants the payload once and it fires on every device that pulls. The bug also bypasses the user's enabledCSS / enabledJS separation. A user who turned enabledJS off was making a deliberate call not to run untrusted JavaScript; the CSS path runs it anyway. This vulnerability is fixed in 3.7.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.9,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00381,"percentile":0.33013,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-1188","name":"Initialization of a Resource with an Insecure Default"}],"references":[{"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-mvjr-vv3c-w4qv","tags":["x_refsource_CONFIRM"]}],"priority":{"score":13.5,"factors":[{"name":"EPSS percentile","points":6.6},{"name":"CVSS severity","points":6.93}]},"vendorSlug":"siyuan-note","affectedVersions":[{"vendor":"siyuan-note","product":"siyuan","versions":["< 3.7.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-06-25T15:29:14.922467Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/siyuan-note/siyuan/kernel","vulnerableRanges":["<0.0.0-20260628153353-2d5d72223df4"],"patched":["0.0.0-20260628153353-2d5d72223df4"],"from":["GHSA-mvjr-vv3c-w4qv","GO-2026-5963"],"provenance":"source"}],"summary":{"text":"SiYuan's renderSnippet() function, prior to version 3.7.0, interpolates CSS snippet content into a page via insertAdjacentHTML without neutralizing a closing </style> tag, letting snippet text escape its style block and inject script into the renderer. An attacker with write access to a synced workspace can plant such a snippet once, and it executes on any device that pulls it, with no further user interaction required; on Electron desktop builds, where the renderer has nodeIntegration enabled, this can extend to remote code execution on the host.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:57:36Z"},"euvd":{"id":"EUVD-2026-39123","exploited":false,"provenance":"source"}}