# CVE-2026-34585: SiYuan: Stored XSS in imported .sy.zip content leads to arbitrary command execution

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 3.6.2 (CNA); fix release not confirmed
- Status: published
- Published: 2026-03-31 · Modified: 2026-04-01
- Aliases: GHSA-ff66-236v-p4fg, GO-2026-5357
- Record: https://cvemate.com/vulnerability/CVE-2026-34585 · JSON: https://cvemate.com/vulnerability/CVE-2026-34585/json

## Description

```text
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.
```

## Signals

- CVSS: 8.6 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- EPSS: 0.4%, percentile 36.36%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- b3log siyuan: \< 3.6.2
- github.com/siyuan-note/siyuan kernel (Go): \< 0.0.0-20260329142331-918d1bd9f967
- siyuan-note siyuan: \< 3.6.2

## References

- <https://github.com/siyuan-note/siyuan/security/advisories/GHSA-ff66-236v-p4fg>
- <https://github.com/siyuan-note/siyuan/issues/17246>
- <https://github.com/siyuan-note/siyuan/releases/tag/v3.6.2>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34585>
- <https://github.com/siyuan-note/siyuan/commit/918d1bd9f967d888f474f6764744a3d8cca4a501>
- <https://github.com/siyuan-note/siyuan>

---

Data as of 2026-12-05T08:24:18.660Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
