{"cve":"CVE-2026-54067","nvd":{"published":"2026-06-24T22:16:48.177","modified":"2026-10-25T23:10:00.167","status":"Deferred","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9},"cwes":["CWE-79","CWE-1188"],"references":["https://github.com/siyuan-note/siyuan/security/advisories/GHSA-mvjr-vv3c-w4qv","https://github.com/siyuan-note/siyuan/security/advisories/GHSA-mvjr-vv3c-w4qv"],"products":[],"source":"nvd","synced_at":"2026-10-25T23:44:33.281319194+00:00"},"epss":{"cve":"CVE-2026-54067","score":0.00541,"percentile":0.45197,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-mvjr-vv3c-w4qv","url":"https://osv.dev/vulnerability/GHSA-mvjr-vv3c-w4qv","summary":"SiYuan: Stored XSS to RCE via CSS-snippet <style> breakout in renderSnippet()","modified":"2026-07-21T19:18:51.648509965Z","packages":[{"ecosystem":"Go","name":"github.com/siyuan-note/siyuan/kernel","purl":"pkg:golang/github.com/siyuan-note/siyuan/kernel","ranges":["<0.0.0-20260628153353-2d5d72223df4"],"fixed":["0.0.0-20260628153353-2d5d72223df4"]}]},{"id":"GO-2026-5963","url":"https://osv.dev/vulnerability/GO-2026-5963","summary":"SiYuan: Stored XSS to RCE via CSS-snippet <style> breakout in renderSnippet() in github.com/siyuan-note/siyuan/kernel","modified":"2026-07-21T19:15:29.256312812Z","packages":[{"ecosystem":"Go","name":"github.com/siyuan-note/siyuan/kernel","purl":"pkg:golang/github.com/siyuan-note/siyuan/kernel","ranges":["<0.0.0-20260628153353-2d5d72223df4"],"fixed":["0.0.0-20260628153353-2d5d72223df4"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}