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

- Severity: High 8.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-31T21:47:01.843Z
- Modified: 2026-06-25T19:56:37.607Z
- Also known as: GHSA-ff66-236v-p4fg, GO-2026-5357
- Weaknesses: CWE-79, CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:3.1 8.6 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.6 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.2 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`

## References

- <https://github.com/siyuan-note/siyuan/security/advisories/GHSA-ff66-236v-p4fg> (exploit, advisory, vendor-advisory, web)
- <https://github.com/siyuan-note/siyuan/issues/17246> (issue-tracking, web)
- <https://github.com/siyuan-note/siyuan/releases/tag/v3.6.2> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34585> (advisory)
- <https://github.com/siyuan-note/siyuan/commit/918d1bd9f967d888f474f6764744a3d8cca4a501> (web)
- <https://github.com/siyuan-note/siyuan> (package)

## Sources

- CVE List: [CVE-2026-34585](https://www.cve.org/CVERecord?id=CVE-2026-34585), CVE Terms of Use, modified 2026-04-01
- GitHub Advisory Database: [GHSA-ff66-236v-p4fg](https://github.com/advisories/GHSA-ff66-236v-p4fg), CC-BY-4.0, modified 2026-06-25
- Go Vulnerability Database: [GO-2026-5357](https://pkg.go.dev/vuln/GO-2026-5357), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-34585](https://nvd.nist.gov/vuln/detail/CVE-2026-34585), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-34585 · Whole record: https://cve.day/CVE-2026-34585.json · Rebuilt by cve.day 2026-11-25T22:59:17.652Z
