{"cve":"CVE-2026-34585","nvd":{"published":"2026-03-31T22:16:22.080","modified":"2026-06-17T10:39:16.763","status":"Analyzed","description":"SiYuan is a personal knowledge management system. Prior to version 3.6.2, a vulnerability allows crafted block attribute values to bypass server-side attribute escaping when an HTML entity is mixed with raw special characters. An attacker can embed a malicious IAL value inside a .sy document, package it as a .sy.zip, and have the victim import it through the normal Import -> SiYuan .sy.zip workflow. Once the note is opened, the malicious attribute breaks out of its original HTML context and injects an event handler, resulting in stored XSS. In the Electron desktop client, this XSS reaches remote code execution because injected JavaScript runs with access to Node/Electron APIs. This issue has been patched in version 3.6.2.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":8.2},"cwes":["CWE-79","CWE-94"],"references":["https://github.com/siyuan-note/siyuan/issues/17246","https://github.com/siyuan-note/siyuan/releases/tag/v3.6.2","https://github.com/siyuan-note/siyuan/security/advisories/GHSA-ff66-236v-p4fg","https://github.com/siyuan-note/siyuan/security/advisories/GHSA-ff66-236v-p4fg"],"products":["b3log:siyuan"],"source":"nvd","synced_at":"2026-10-19T22:28:18.033120106+00:00"},"epss":{"cve":"CVE-2026-34585","score":0.00349,"percentile":0.28523,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-ff66-236v-p4fg","url":"https://osv.dev/vulnerability/GHSA-ff66-236v-p4fg","summary":"SiYuan Desktop: Stored XSS in imported .sy.zip content leads to arbitrary command execution","modified":"2026-06-25T19:56:37.607959141Z","packages":[{"ecosystem":"Go","name":"github.com/siyuan-note/siyuan/kernel","purl":"pkg:golang/github.com/siyuan-note/siyuan/kernel","ranges":["<0.0.0-20260329142331-918d1bd9f967"],"fixed":["0.0.0-20260329142331-918d1bd9f967"]}]},{"id":"GO-2026-5357","url":"https://osv.dev/vulnerability/GO-2026-5357","summary":"SiYuan Desktop: Stored XSS in imported .sy.zip content leads to arbitrary command execution in github.com/siyuan-note/siyuan/kernel","modified":"2026-06-25T19:45:35.020743780Z","packages":[{"ecosystem":"Go","name":"github.com/siyuan-note/siyuan/kernel","purl":"pkg:golang/github.com/siyuan-note/siyuan/kernel","ranges":["<0.0.0-20260329142331-918d1bd9f967"],"fixed":["0.0.0-20260329142331-918d1bd9f967"]}]}],"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."]}