# CVE-2026-54158: SiYuan Stored XSS to RCE in attribute-view cell renderer

Source: https://junglewise.ai/threats/cve-2026-54158-siyuan-stored-xss-to-rce-in-attribute-view-cell-renderer  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-24. Updated: 2026-07-10  
License: CC BY 4.0 with a link back

CVE-2026-54158 · Severity: critical · CVSS 9.9 · Published 2026-06-24

SiYuan, a personal knowledge management system, is vulnerable to a security flaw where malicious data in a database cell can execute unauthorized commands on a user's computer. If an attacker can modify a shared or synced workspace, they can plant a 'booby-trap' that triggers when a victim simply views the affected data. On desktop versions, this can lead to a full takeover of the user's computer, potentially resulting in data theft or malware installation.

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-54158 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-54158 being exploited in the wild.

**How severe is CVE-2026-54158?** Critical severity, with a CVSS score of 9.9, published 24 June 2026.

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

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

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

**Am I affected by CVE-2026-54158?** 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-20260628153353-2d5d72223df4 or later

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


## Technical details

A stored XSS vulnerability exists in the `genAVValueHTML` function within `app/src/protyle/render/av/blockAttr.ts`. The renderer fails to sanitize cell content for `text`, `url`, `phone`, and `mAsset` types before interpolating them into the DOM via `innerHTML`. An attacker with write access to a synced workspace can inject malicious JavaScript. On Electron-based desktop builds, because `nodeIntegration` is enabled and `contextIsolation` is disabled, this XSS can be leveraged to achieve Remote Code Execution (RCE) by calling Node.js primitives like `require('child_process')`. The vulnerability is triggered when a user opens the block-attribute panel containing the malicious cell.

## Affected products

- siyuan-note SiYuan < 3.6.6

## Identifiers

- CVE-2026-54158
- GHSA-5xfx-xj4h-5p7r
- GO-2026-5957

## Timeline

- 2026-04-21: disclosed: Vulnerability identified in version 3.6.5
- 2026-06-03: advisory: GitHub Advisory published
- 2026-06-28: patched: Fixed in commit 2d5d72223df4

## References

- [https://api.github.com/users/hillalee](https://api.github.com/users/hillalee)
- [https://github.com/hillalee](https://github.com/hillalee)
- [https://api.github.com/users/hillalee/gists%7B/gist_id%7D](https://api.github.com/users/hillalee/gists%7B/gist_id%7D)
- [https://api.github.com/users/hillalee/repos](https://api.github.com/users/hillalee/repos)
- [https://avatars.githubusercontent.com/u/146629145?v=4](https://avatars.githubusercontent.com/u/146629145?v=4)
- [https://api.github.com/users/hillalee/events%7B/privacy%7D](https://api.github.com/users/hillalee/events%7B/privacy%7D)

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