{"id":"CVE-2026-40107","published":"2026-04-09T21:03:58Z","modified":"2026-04-10T18:12:28Z","title":"SiYuan Affected by Zero-Click NTLM Hash Theft and Blind SSRF via Mermaid Diagram Rendering","vendor":"siyuan-note","product":"siyuan","tier":"tail","description":{"text":"SiYuan is a personal knowledge management system. Prior to 3.6.4, SiYuan configures Mermaid.js with securityLevel: \"loose\" and htmlLabels: true. In this mode, <img> tags with src attributes survive Mermaid's internal DOMPurify and land in SVG <foreignObject> blocks. The SVG is injected via innerHTML with no secondary sanitization. When a victim opens a note containing a malicious Mermaid diagram, the Electron client fetches the URL. On Windows, a protocol-relative URL (//attacker.com/image.png) resolves as a UNC path (\\\\attacker.com\\image.png). Windows attempts SMB authentication automatically, sending the victim's NTLMv2 hash to the attacker. This vulnerability is fixed in 3.6.4.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:L/SI:L/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00318,"percentile":0.25421,"provenance":"source"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-w95v-4h65-j455","tags":["x_refsource_CONFIRM"]}],"priority":{"score":11.2,"factors":[{"name":"EPSS percentile","points":5.08},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"siyuan-note","affectedVersions":[{"vendor":"siyuan-note","product":"siyuan","versions":["< 3.6.4"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-10T18:12:18.595543Z","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-w95v-4h65-j455","GO-2026-5702"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-21148","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"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-40107","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":9}]}},{"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},{"cve":"CVE-2026-65607","published":"2026-07-23","fixed":"0.0.0-20260510110132-b763d787d1f2","kev":false}],"package":"Go:github.com/siyuan-note/siyuan/kernel"}}