{"cve":"CVE-2026-39846","nvd":{"published":"2026-04-07T22:16:23.597","modified":"2026-07-20T20:10:00.110","status":"Analyzed","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":9.0},"cwes":["CWE-79","CWE-94"],"references":["https://github.com/siyuan-note/siyuan/security/advisories/GHSA-phhp-9rm9-6gr2","https://github.com/siyuan-note/siyuan/security/advisories/GHSA-phhp-9rm9-6gr2"],"products":["b3log:siyuan"],"source":"nvd","synced_at":"2026-10-19T22:28:59.047572785+00:00"},"epss":{"cve":"CVE-2026-39846","score":0.00538,"percentile":0.45346,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-phhp-9rm9-6gr2","url":"https://osv.dev/vulnerability/GHSA-phhp-9rm9-6gr2","summary":"SiYuan: Remote Code Execution in the Electron desktop client via stored XSS in synced table captions","modified":"2026-06-25T23:11:11.679224825Z","packages":[{"ecosystem":"Go","name":"github.com/siyuan-note/siyuan/kernel","purl":"pkg:golang/github.com/siyuan-note/siyuan/kernel","ranges":["<0.0.0-20260407035653-2f416e5253f1"],"fixed":["0.0.0-20260407035653-2f416e5253f1"]}]},{"id":"GO-2026-5540","url":"https://osv.dev/vulnerability/GO-2026-5540","summary":"SiYuan: Remote Code Execution in the Electron desktop client via stored XSS in synced table captions in github.com/siyuan-note/siyuan/kernel","modified":"2026-06-25T23:01:21.614369879Z","packages":[{"ecosystem":"Go","name":"github.com/siyuan-note/siyuan/kernel","purl":"pkg:golang/github.com/siyuan-note/siyuan/kernel","ranges":["<0.0.0-20260407035653-2f416e5253f1"],"fixed":["0.0.0-20260407035653-2f416e5253f1"]}]}],"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."]}