# CVE-2026-54158: SiYuan: Stored XSS to RCE via attribute-view cell rendering in genAVValueHTML()

- Severity: Critical 9.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/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.44%, higher than 40% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-24T21:19:16.988Z
- Modified: 2026-10-25T23:10:00.167Z
- Also known as: GHSA-5xfx-xj4h-5p7r, GO-2026-5957
- Weaknesses: CWE-79, CWE-1188
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

SiYuan is an open-source personal knowledge management system. Prior to 3.7.0, the attribute-view (database) cell renderer genAVValueHTML interpolates cell content raw in four of its branches: text, url, phone, and mAsset. A cell value like </textarea><img src=x onerror="..."> or "><img src=x onerror="..."> breaks out of its surrounding tag and runs arbitrary JavaScript in the renderer when the victim opens the block-attribute panel. On Electron desktop the renderer runs with nodeIntegration:true, so the XSS chains to host RCE via require('child_process'). AV files live under the workspace and ride normal sync, so an attacker with write access to any synced workspace plants the payload once and it fires on every device that opens a panel containing that row.he kernel doesn't escape on the way in either, so the malicious cell persists byte-for-byte. There's no equivalent of the html.EscapeAttrVal call that protects block IAL attributes at kernel/model/blockial.go:261. This vulnerability is fixed in 3.7.0.

(As written by CVE List.)

## Affected

- siyuan-note siyuan: < 3.7.0
- github.com/siyuan-note/siyuan/kernel (Go): before 0.0.0-20260628153353-2d5d72223df4

## Every score

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

## References

- <https://github.com/siyuan-note/siyuan/security/advisories/GHSA-5xfx-xj4h-5p7r> (exploit, advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54158> (advisory)
- <https://github.com/siyuan-note/siyuan> (package)

## Sources

- CVE List: [CVE-2026-54158](https://www.cve.org/CVERecord?id=CVE-2026-54158), CVE Terms of Use, modified 2026-06-25
- GitHub Advisory Database: [GHSA-5xfx-xj4h-5p7r](https://github.com/advisories/GHSA-5xfx-xj4h-5p7r), CC-BY-4.0, modified 2026-07-21
- Go Vulnerability Database: [GO-2026-5957](https://pkg.go.dev/vuln/GO-2026-5957), CC-BY-4.0, modified 2026-07-21
- NVD: [CVE-2026-54158](https://nvd.nist.gov/vuln/detail/CVE-2026-54158), Public domain, modified 2026-10-25

---

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