CVE-2026-54158: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in siyuan-note siyuan
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.
AI Analysis
Technical Summary
CVE-2026-54158 is a critical cross-site scripting vulnerability in SiYuan versions before 3.7.0. The attribute-view (database) cell renderer function genAVValueHTML unsafely interpolates raw cell content in four branches: text, url, phone, and mAsset. Malicious input such as </textarea><img src=x onerror="..."> breaks out of the surrounding HTML context and executes arbitrary JavaScript when the block-attribute panel is opened. Because the Electron desktop client runs with nodeIntegration:true, the XSS can chain to remote code execution via Node.js child_process module. The malicious payload persists in the workspace files and syncs across devices, triggering execution on every device opening the affected panel. The vulnerability is resolved in version 3.7.0.
Potential Impact
Successful exploitation allows an attacker with write access to a synced workspace to inject malicious HTML/JavaScript that executes in the context of the SiYuan application. On the Electron desktop client, this leads to remote code execution with the privileges of the user running the application. The vulnerability compromises confidentiality, integrity, and availability, as indicated by the CVSS score of 9.9. The malicious payload persists byte-for-byte in the workspace files and triggers on every device that opens the affected attribute panel.
Mitigation Recommendations
This vulnerability is fixed in SiYuan version 3.7.0. Users should upgrade to version 3.7.0 or later to remediate this issue. No official patch or temporary fix is provided for earlier versions. Until upgrading, restrict write access to synced workspaces to trusted users only to prevent planting malicious payloads.
CVE-2026-54158: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in siyuan-note siyuan
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 v3.1
Score 9.9critical
Affected software
pkg:github/siyuan-note/siyuanRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-54158 is a critical cross-site scripting vulnerability in SiYuan versions before 3.7.0. The attribute-view (database) cell renderer function genAVValueHTML unsafely interpolates raw cell content in four branches: text, url, phone, and mAsset. Malicious input such as </textarea><img src=x onerror="..."> breaks out of the surrounding HTML context and executes arbitrary JavaScript when the block-attribute panel is opened. Because the Electron desktop client runs with nodeIntegration:true, the XSS can chain to remote code execution via Node.js child_process module. The malicious payload persists in the workspace files and syncs across devices, triggering execution on every device opening the affected panel. The vulnerability is resolved in version 3.7.0.
Potential Impact
Successful exploitation allows an attacker with write access to a synced workspace to inject malicious HTML/JavaScript that executes in the context of the SiYuan application. On the Electron desktop client, this leads to remote code execution with the privileges of the user running the application. The vulnerability compromises confidentiality, integrity, and availability, as indicated by the CVSS score of 9.9. The malicious payload persists byte-for-byte in the workspace files and triggers on every device that opens the affected attribute panel.
Mitigation Recommendations
This vulnerability is fixed in SiYuan version 3.7.0. Users should upgrade to version 3.7.0 or later to remediate this issue. No official patch or temporary fix is provided for earlier versions. Until upgrading, restrict write access to synced workspaces to trusted users only to prevent planting malicious payloads.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-11T21:46:52.379Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a3c501e4853345fc1e45c4b
Added to database: 06/24/2026, 21:46:06 UTC
Last enriched: 07/11/2026, 09:49:09 UTC
Last updated: 08/08/2026, 12:41:11 UTC
Views: 152
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.