CVE-2026-54158: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in siyuan-note siyuan
SiYuan, an open-source personal knowledge management system, has a critical cross-site scripting (XSS) vulnerability in versions prior to 3.7.0. The vulnerability occurs in the attribute-view cell renderer which improperly interpolates raw cell content in certain branches, allowing malicious input to execute arbitrary JavaScript. On the Electron desktop client with nodeIntegration enabled, this XSS can escalate to remote code execution (RCE). The issue is fixed in version 3.7.0.
AI Analysis
Technical Summary
CVE-2026-54158 is a critical vulnerability in SiYuan versions before 3.7.0 where the attribute-view cell renderer (genAVValueHTML) interpolates unescaped cell content in four branches: text, url, phone, and mAsset. Malicious input such as crafted HTML tags with event handlers can break out of the intended context and execute arbitrary JavaScript when a user opens the block-attribute panel. Because the Electron desktop client runs with nodeIntegration:true, this XSS can chain to host remote code execution via Node.js child_process. The malicious payload persists in the workspace files without escaping, allowing it to trigger on every device syncing the workspace. The vulnerability is addressed by proper escaping in version 3.7.0.
Potential Impact
Successful exploitation allows an attacker with write access to a synced workspace to inject malicious code that executes arbitrary JavaScript in the context of the renderer. On the Electron desktop client, this can escalate to remote code execution on the host system. This compromises confidentiality, integrity, and availability of the affected system. The vulnerability has a CVSS score of 9.9 (critical). No known exploits in the wild have been reported.
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. Since no official patch or temporary fix is indicated beyond the version update, upgrading is the recommended action.
CVE-2026-54158: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in siyuan-note siyuan
Description
SiYuan, an open-source personal knowledge management system, has a critical cross-site scripting (XSS) vulnerability in versions prior to 3.7.0. The vulnerability occurs in the attribute-view cell renderer which improperly interpolates raw cell content in certain branches, allowing malicious input to execute arbitrary JavaScript. On the Electron desktop client with nodeIntegration enabled, this XSS can escalate to remote code execution (RCE). The issue is fixed in version 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 vulnerability in SiYuan versions before 3.7.0 where the attribute-view cell renderer (genAVValueHTML) interpolates unescaped cell content in four branches: text, url, phone, and mAsset. Malicious input such as crafted HTML tags with event handlers can break out of the intended context and execute arbitrary JavaScript when a user opens the block-attribute panel. Because the Electron desktop client runs with nodeIntegration:true, this XSS can chain to host remote code execution via Node.js child_process. The malicious payload persists in the workspace files without escaping, allowing it to trigger on every device syncing the workspace. The vulnerability is addressed by proper escaping in version 3.7.0.
Potential Impact
Successful exploitation allows an attacker with write access to a synced workspace to inject malicious code that executes arbitrary JavaScript in the context of the renderer. On the Electron desktop client, this can escalate to remote code execution on the host system. This compromises confidentiality, integrity, and availability of the affected system. The vulnerability has a CVSS score of 9.9 (critical). No known exploits in the wild have been reported.
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. Since no official patch or temporary fix is indicated beyond the version update, upgrading is the recommended action.
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: 06/24/2026, 22:02:13 UTC
Last updated: 06/25/2026, 00:00:52 UTC
Views: 7
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.