# CVE-2026-39846: SiYuan remote code execution via stored XSS in table captions

Source: https://junglewise.ai/threats/cve-2026-39846-siyuan-remote-code-execution-via-stored-xss-in-table-captions  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-04-07. Updated: 2026-07-20  
License: CC BY 4.0 with a link back

CVE-2026-39846 · Severity: critical · CVSS 9 · Published 2026-04-07

SiYuan is a personal knowledge management system used for organizing notes and data. A security flaw in the desktop application allows a malicious user to create a specially crafted note that, when shared or synced and opened by another user, can take full control of the victim's computer. This could result in the theft of sensitive personal data, installation of malware, or complete loss of system access.

Technologies: [github.com/siyuan-note/siyuan/kernel (Go)](https://junglewise.ai/threats/technologies/github-com-siyuan-note-siyuan-kernel), [SiYuan](https://junglewise.ai/threats/technologies/siyuan). Vendors: [Go](https://junglewise.ai/threats/vendors/go), [SiYuan](https://junglewise.ai/threats/vendors/siyuan).

## Quick answers

**Is CVE-2026-39846 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-39846 being exploited in the wild.

**How severe is CVE-2026-39846?** Critical severity, with a CVSS score of 9, published 7 April 2026.

**Which products and versions are affected?** github.com/siyuan-note/siyuan/kernel (Go) SEMVER:introduced=0,fixed=0.0.0-20260407035653-2f416e5253f1; SiYuan < 3.6.4.

**Is there a fix for CVE-2026-39846?** Yes. github.com/siyuan-note/siyuan/kernel (Go): upgrade to 0.0.0-20260407035653-2f416e5253f1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-39846 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-39846?** Check whether you run github.com/siyuan-note/siyuan/kernel (Go) or SiYuan at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/siyuan-note/siyuan/kernel (Go): upgrade to 0.0.0-20260407035653-2f416e5253f1 or later

  ```sh
  go get github.com/siyuan-note/siyuan/kernel@v0.0.0-20260407035653-2f416e5253f1
  ```


## Technical details

A stored Cross-Site Scripting (XSS) vulnerability exists in the SiYuan Electron desktop client due to improper neutralization of table caption content. The application stores table captions without escaping and subsequently unescapes them into the rendered HTML DOM. Because the Electron renderer is configured with 'nodeIntegration' enabled and 'contextIsolation' disabled, an attacker can leverage this XSS sink to execute arbitrary Node.js APIs, such as 'child_process.exec'. The attack is delivered by importing a crafted '.sy.zip' note into a shared workspace; when a victim syncs and opens the note, the payload executes in the context of the logged-in user. This issue is resolved in version 3.6.4.

## Affected products

- siyuan-note SiYuan < 3.6.4

## Identifiers

- CVE-2026-39846
- GHSA-phhp-9rm9-6gr2
- GO-2026-5540

## Timeline

- 2026-04-07: disclosed
- 2026-04-07: advisory
- 2026-04-07: patched: Fixed in version 3.6.4

## References

- [https://github.com/siyuan-note/siyuan/security/advisories/GHSA-phhp-9rm9-6gr2](https://github.com/siyuan-note/siyuan/security/advisories/GHSA-phhp-9rm9-6gr2)

## Related threats

- [SiYuan path traversal in web fetch](https://junglewise.ai/threats/cve-2026-126776-siyuan-3-7-0-before-3-8-10-on-windows-contains-a-path-traversal)
- [SiYuan publish filter information disclosure in local storage](https://junglewise.ai/threats/go-2026-6836-siyuan-the-publish-filter-for-local-storage-returns-the-7f022e62)
- [SiYuan path traversal via GLOBALROOT alias bypass](https://junglewise.ai/threats/cve-2026-118680-siyuan-3-8-7-through-3-8-8-fails-to-normalize-windows-globalroot)
- [SiYuan SQL injection in history search](https://junglewise.ai/threats/cve-2026-116170-siyuan-before-v3-8-7-contains-an-sql-injection-vulnerability)
- [SiYuan cross-site scripting in /check-auth redirect](https://junglewise.ai/threats/cve-2026-116167-siyuan-from-2-9-0-before-3-8-7-contains-a-cross-site-scripting)
