# CVE-2026-39846: SiYuan affected by Remote Code Execution in the Electron desktop client via stored XSS in synced table captions

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/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.69%, higher than 48% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-07T21:34:28.517Z
- Modified: 2026-07-20T20:10:00.110Z
- Also known as: GHSA-phhp-9rm9-6gr2, GO-2026-5540
- 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 3.6.4, a malicious note synced to another user can trigger remote code execution in the SiYuan Electron desktop client. The root cause is that table caption content is stored without safe escaping and later unescaped into rendered HTML, creating a stored XSS sink. Because the desktop renderer runs with nodeIntegration enabled and contextIsolation disabled, attacker-controlled JavaScript executes with access to Node.js APIs. In practice, an attacker can import a crafted note into a synced workspace, wait for the victim to sync, and achieve code execution when the victim opens the note. This vulnerability is fixed in 3.6.4.

(As written by CVE List.)

## Affected

- siyuan-note siyuan: < 3.6.4
- github.com/siyuan-note/siyuan/kernel (Go): before 0.0.0-20260407035653-2f416e5253f1
- b3log siyuan: before 3.6.4

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`

## References

- <https://github.com/siyuan-note/siyuan/security/advisories/GHSA-phhp-9rm9-6gr2> (exploit, advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-39846> (advisory)
- <https://github.com/siyuan-note/siyuan> (package)

## Sources

- CVE List: [CVE-2026-39846](https://www.cve.org/CVERecord?id=CVE-2026-39846), CVE Terms of Use, modified 2026-04-08
- GitHub Advisory Database: [GHSA-phhp-9rm9-6gr2](https://github.com/advisories/GHSA-phhp-9rm9-6gr2), CC-BY-4.0, modified 2026-06-25
- Go Vulnerability Database: [GO-2026-5540](https://pkg.go.dev/vuln/GO-2026-5540), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-39846](https://nvd.nist.gov/vuln/detail/CVE-2026-39846), Public domain, modified 2026-07-20

---

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