{"id":"CVE-2026-33066","published":"2026-03-20T08:11:52Z","modified":"2026-03-20T21:23:07Z","title":"SiYuan has Stored XSS to RCE via Unsanitized Bazaar README Rendering","vendor":"siyuan-note","product":"siyuan","tier":"tail","description":{"text":"SiYuan is a personal knowledge management system. In versions 3.6.0 and below, the backend renderREADME function uses lute.New() without calling SetSanitize(true), allowing raw HTML embedded in Markdown to pass through unmodified. The frontend then assigns the rendered HTML to innerHTML without any additional sanitization. A malicious package author can embed arbitrary JavaScript in their README that executes when a user clicks to view the package details. Because SiYuan's Electron configuration enables nodeIntegration: true with contextIsolation: false, this XSS escalates directly to full Remote Code Execution. The issue was patched in version 3.6.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00667,"percentile":0.52797,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-4663-4mpg-879v","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/siyuan-note/siyuan/commit/b382f50e1880ed996364509de5a10a72d7409428","tags":["x_refsource_MISC"]}],"priority":{"score":14.3,"factors":[{"name":"EPSS percentile","points":10.56},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"siyuan-note","affectedVersions":[{"vendor":"siyuan-note","product":"siyuan","versions":["< 3.6.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-20T21:22:54.684811Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/siyuan-note/siyuan/kernel","vulnerableRanges":["<0.0.0-20260314111550-b382f50e1880"],"patched":["0.0.0-20260314111550-b382f50e1880"],"from":["GHSA-4663-4mpg-879v","GO-2026-4743"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-13628","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-siyuan-note-siyuan-cve-2026-33066","children":[{"from":"CVE-2026-33066","to":"CVE-2026-40922","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"In versions 3.6.1 through 3.6.3, a prior fix for XSS in bazaar README rendering (incomplete fix for CVE-2026-33066) enabled the Lute HTML sanitizer, but the sanitizer does not block iframe tags, and its URL-prefix blocklist does not effec…","from":"CVE.org","in":"CVE-2026-40922"},{"kind":"osv-related","provenance":"source","id":"GHSA-4663-4mpg-879v","via":"related"},{"kind":"osv-related","provenance":"source","id":"GHSA-8q5w-mmxf-48jg","via":"reference","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33066"},{"kind":"osv-related","provenance":"source","id":"GO-2026-5260","via":"reference","url":"https://github.com/advisories/GHSA-4663-4mpg-879v"}]}],"packageHistory":[{"cve":"CVE-2026-29183","published":"2026-03-06","fixed":"0.0.0-20260304034809-d68bd5a79391","kev":false},{"cve":"CVE-2026-31807","published":"2026-03-10","fixed":"0.0.0-20260310025236-297bd526708f","kev":false,"link":{"from":"CVE-2026-31807","to":"CVE-2026-33066","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/siyuan-note/siyuan/kernel","fromFixed":"0.0.0-20260310025236-297bd526708f","toFixed":"0.0.0-20260314111550-b382f50e1880","daysApart":10}]}},{"cve":"CVE-2026-31809","published":"2026-03-10","fixed":"0.0.0-20260310025236-297bd526708f","kev":false},{"cve":"CVE-2026-33066","published":"2026-03-20","fixed":"0.0.0-20260314111550-b382f50e1880","kev":false},{"cve":"CVE-2026-33067","published":"2026-03-20","fixed":"0.0.0-20260317012524-fe4523fff2c8","kev":false,"link":{"from":"CVE-2026-33066","to":"CVE-2026-33067","relation":"successor","confidence":"medium","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/siyuan-note/siyuan/kernel","fromFixed":"0.0.0-20260314111550-b382f50e1880","toFixed":"0.0.0-20260317012524-fe4523fff2c8","daysApart":0},{"kind":"similar","provenance":"machine","score":0.44,"basis":"same product + CWE + description similarity"}]}},{"cve":"CVE-2026-56397","published":"2026-06-21","fixed":"0.0.0-20260317012524-fe4523fff2c8","kev":false,"link":{"from":"CVE-2026-33066","to":"CVE-2026-56397","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/siyuan-note/siyuan/kernel","fromFixed":"0.0.0-20260314111550-b382f50e1880","toFixed":"0.0.0-20260317012524-fe4523fff2c8","daysApart":93}]}},{"cve":"CVE-2026-34585","published":"2026-03-31","fixed":"0.0.0-20260329142331-918d1bd9f967","kev":false}],"package":"Go:github.com/siyuan-note/siyuan/kernel"}}