{"cve":"CVE-2026-54158","nvd":{"published":"2026-06-24T22:16:48.740","modified":"2026-10-25T23:10:00.167","status":"Deferred","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9},"cwes":["CWE-79","CWE-1188"],"references":["https://github.com/siyuan-note/siyuan/security/advisories/GHSA-5xfx-xj4h-5p7r","https://github.com/siyuan-note/siyuan/security/advisories/GHSA-5xfx-xj4h-5p7r"],"products":[],"source":"nvd","synced_at":"2026-10-25T23:44:33.281319194+00:00"},"epss":{"cve":"CVE-2026-54158","score":0.00509,"percentile":0.43181,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-5xfx-xj4h-5p7r","url":"https://osv.dev/vulnerability/GHSA-5xfx-xj4h-5p7r","summary":"SiYuan: Stored XSS to RCE via attribute-view cell rendering in genAVValueHTML()","modified":"2026-07-21T19:19:18.664630145Z","packages":[{"ecosystem":"Go","name":"github.com/siyuan-note/siyuan/kernel","purl":"pkg:golang/github.com/siyuan-note/siyuan/kernel","ranges":["<0.0.0-20260628153353-2d5d72223df4"],"fixed":["0.0.0-20260628153353-2d5d72223df4"]}]},{"id":"GO-2026-5957","url":"https://osv.dev/vulnerability/GO-2026-5957","summary":"SiYuan: Stored XSS to RCE via attribute-view cell rendering in genAVValueHTML() in github.com/siyuan-note/siyuan/kernel","modified":"2026-07-21T19:15:26.413361336Z","packages":[{"ecosystem":"Go","name":"github.com/siyuan-note/siyuan/kernel","purl":"pkg:golang/github.com/siyuan-note/siyuan/kernel","ranges":["<0.0.0-20260628153353-2d5d72223df4"],"fixed":["0.0.0-20260628153353-2d5d72223df4"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}