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

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 3.6.4 (CNA); fix release not confirmed
- Status: published
- Published: 2026-04-07 · Modified: 2026-04-08
- Aliases: GHSA-phhp-9rm9-6gr2, GO-2026-5540
- Record: https://cvemate.com/vulnerability/CVE-2026-39846 · JSON: https://cvemate.com/vulnerability/CVE-2026-39846/json

## Description

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

## Signals

- CVSS: 9.1 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
- EPSS: 0.64%, percentile 52.109%, 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.4
- github.com/siyuan-note/siyuan kernel (Go): \< 0.0.0-20260407035653-2f416e5253f1
- siyuan-note siyuan: \< 3.6.4

## References

- <https://github.com/siyuan-note/siyuan/security/advisories/GHSA-phhp-9rm9-6gr2>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-39846>
- <https://github.com/siyuan-note/siyuan>

---

Data as of 2026-12-05T08:38:44.186Z. 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
