{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-40107","published":"2026-04-09T21:16:12.123000Z","last_modified":"2026-06-17T10:44:44.027000Z","status":"Analyzed","cvss":{"version":"4.0","score":8.7,"severity":"HIGH","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"security-advisories@github.com","primary":false},"auth":false,"cwes":["CWE-918"],"cpes":[{"criteria":"cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*","part":"a","vendor":"b3log","product":"siyuan","version_end_excluding":"3.6.4"}],"cpes_truncated":false,"vendors":["b3log"],"products":["b3log/siyuan"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-w95v-4h65-j455","ecosystem":"Go","name":"github.com/siyuan-note/siyuan/kernel","purl":"pkg:golang/github.com/siyuan-note/siyuan/kernel","ranges":[{"introduced":"0","fixed":"0.0.0-20260407035653-2f416e5253f1"}],"versions":[],"versions_truncated":false},{"advisory":"GO-2026-5702","ecosystem":"Go","name":"github.com/siyuan-note/siyuan/kernel","purl":"pkg:golang/github.com/siyuan-note/siyuan/kernel","ranges":[{"introduced":"0","fixed":"0.0.0-20260407035653-2f416e5253f1"}],"versions":[],"versions_truncated":false}],"severity":"high","priority_score":67,"links":{"html_es":"/es/cve/CVE-2026-40107/","html_en":"/en/cve/CVE-2026-40107/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-40107","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-40107"},"untrusted":{"vendor_name":"B3log","product_name":"Siyuan","desc_en":"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.","affected":[{"untrusted_vendor":"siyuan-note","untrusted_product":"siyuan","versions":[]}],"references":[{"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-w95v-4h65-j455","tags":["Exploit","Vendor Advisory"]}]},"bulletins":[{"source":"suse","id":"openSUSE-SU-2026:21483-1","url":"https://www.suse.com/support/update/","published":"2026-07-30T09:09:47+00:00","severity":"critical","exploited":false,"untrusted":{"title":"Security update for govulncheck-vulndb"}}]}