CVE-2026-54067: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in siyuan-note siyuan
A critical cross-site scripting (XSS) vulnerability exists in SiYuan, an open-source personal knowledge management system, prior to version 3.7.0. The issue arises when CSS snippets containing </style> break out of their style tags during rendering, allowing arbitrary JavaScript execution. On Electron desktop builds with nodeIntegration enabled, this XSS can escalate to remote code execution (RCE) on the host. The vulnerability bypasses user settings that disable JavaScript execution, as the CSS path still runs injected scripts. An attacker with write access to any synced workspace can plant a payload that executes on all devices pulling that workspace. This vulnerability is fixed in version 3.7.0.
AI Analysis
Technical Summary
SiYuan versions before 3.7.0 improperly neutralize input in CSS snippets during web page generation. Specifically, a CSS snippet body containing a closing </style> tag breaks out of its surrounding <style> element when rendered via insertAdjacentHTML in the renderSnippet() function. This allows injection of arbitrary JavaScript. On Electron desktop builds where nodeIntegration is true, the injected JavaScript can access Node.js modules such as child_process, enabling remote code execution on the host. The vulnerability bypasses the user's enabledJS setting, which is intended to disable JavaScript execution, because the CSS injection path executes scripts regardless. Attackers with write access to any synced workspace can plant malicious payloads that execute on every device syncing that workspace. The issue is resolved in SiYuan version 3.7.0.
Potential Impact
Successful exploitation allows an attacker with write access to a synced workspace to execute arbitrary JavaScript code in the renderer context of SiYuan. On Electron desktop builds with nodeIntegration enabled, this escalates to remote code execution on the host system, potentially compromising confidentiality, integrity, and availability. The vulnerability bypasses user security settings intended to disable JavaScript execution, increasing the risk of exploitation. This can lead to full system compromise on affected desktop clients.
Mitigation Recommendations
This vulnerability is fixed in SiYuan version 3.7.0. Users and administrators should upgrade to version 3.7.0 or later to remediate the issue. No official patch or temporary fix is indicated beyond upgrading. Since this is not a cloud service, remediation depends on applying the fixed version. Until upgraded, restrict write access to synced workspaces to trusted users only to reduce risk.
CVE-2026-54067: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in siyuan-note siyuan
Description
A critical cross-site scripting (XSS) vulnerability exists in SiYuan, an open-source personal knowledge management system, prior to version 3.7.0. The issue arises when CSS snippets containing </style> break out of their style tags during rendering, allowing arbitrary JavaScript execution. On Electron desktop builds with nodeIntegration enabled, this XSS can escalate to remote code execution (RCE) on the host. The vulnerability bypasses user settings that disable JavaScript execution, as the CSS path still runs injected scripts. An attacker with write access to any synced workspace can plant a payload that executes on all devices pulling that workspace. This vulnerability 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
SiYuan versions before 3.7.0 improperly neutralize input in CSS snippets during web page generation. Specifically, a CSS snippet body containing a closing </style> tag breaks out of its surrounding <style> element when rendered via insertAdjacentHTML in the renderSnippet() function. This allows injection of arbitrary JavaScript. On Electron desktop builds where nodeIntegration is true, the injected JavaScript can access Node.js modules such as child_process, enabling remote code execution on the host. The vulnerability bypasses the user's enabledJS setting, which is intended to disable JavaScript execution, because the CSS injection path executes scripts regardless. Attackers with write access to any synced workspace can plant malicious payloads that execute on every device syncing that workspace. The issue is resolved in SiYuan version 3.7.0.
Potential Impact
Successful exploitation allows an attacker with write access to a synced workspace to execute arbitrary JavaScript code in the renderer context of SiYuan. On Electron desktop builds with nodeIntegration enabled, this escalates to remote code execution on the host system, potentially compromising confidentiality, integrity, and availability. The vulnerability bypasses user security settings intended to disable JavaScript execution, increasing the risk of exploitation. This can lead to full system compromise on affected desktop clients.
Mitigation Recommendations
This vulnerability is fixed in SiYuan version 3.7.0. Users and administrators should upgrade to version 3.7.0 or later to remediate the issue. No official patch or temporary fix is indicated beyond upgrading. Since this is not a cloud service, remediation depends on applying the fixed version. Until upgraded, restrict write access to synced workspaces to trusted users only to reduce risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-11T18:24:35.097Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a3c501e4853345fc1e45c3f
Added to database: 06/24/2026, 21:46:06 UTC
Last enriched: 06/24/2026, 22:02:41 UTC
Last updated: 06/25/2026, 00:09:58 UTC
Views: 6
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.