CVE-2026-54067: 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, CSS snippet body containing </style> breaks out of its surrounding <style> tag when renderSnippet() interpolates it via insertAdjacentHTML. A payload like runs arbitrary JavaScript in the renderer. On Electron desktop builds the renderer runs with nodeIntegration:true, so require('child_process') is reachable from the injected handler and the XSS chains to host RCE. Snippets sync via the workspace repository, so an attacker with write access to any synced workspace plants the payload once and it fires on every device that pulls. The bug also bypasses the user's enabledCSS / enabledJS separation. A user who turned enabledJS off was making a deliberate call not to run untrusted JavaScript; the CSS path runs it anyway. This vulnerability is fixed in 3.7.0.
AI Analysis
Technical Summary
CVE-2026-54067 is a critical XSS vulnerability in SiYuan versions before 3.7.0. The vulnerability arises from unsafe use of insertAdjacentHTML in the renderSnippet() function, allowing malicious CSS snippets containing </style> to escape style tags and execute arbitrary JavaScript code. On Electron desktop builds with nodeIntegration enabled, this XSS can escalate to remote code execution by accessing Node.js modules. The vulnerability also bypasses user settings that disable JavaScript execution, as the CSS injection path still executes scripts. The vendor fixed this issue in version 3.7.0.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of the application, leading to potential remote code execution on Electron desktop builds with nodeIntegration enabled. This can result in full compromise of the affected system. The vulnerability bypasses user-configured JavaScript restrictions, increasing the risk of exploitation.
Mitigation Recommendations
A fix is available in SiYuan version 3.7.0. Users should upgrade to version 3.7.0 or later to remediate this vulnerability. No other mitigation guidance is provided or necessary as the issue is resolved in the fixed version.
CVE-2026-54067: 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, CSS snippet body containing </style> breaks out of its surrounding <style> tag when renderSnippet() interpolates it via insertAdjacentHTML. A payload like runs arbitrary JavaScript in the renderer. On Electron desktop builds the renderer runs with nodeIntegration:true, so require('child_process') is reachable from the injected handler and the XSS chains to host RCE. Snippets sync via the workspace repository, so an attacker with write access to any synced workspace plants the payload once and it fires on every device that pulls. The bug also bypasses the user's enabledCSS / enabledJS separation. A user who turned enabledJS off was making a deliberate call not to run untrusted JavaScript; the CSS path runs it anyway. 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-54067 is a critical XSS vulnerability in SiYuan versions before 3.7.0. The vulnerability arises from unsafe use of insertAdjacentHTML in the renderSnippet() function, allowing malicious CSS snippets containing </style> to escape style tags and execute arbitrary JavaScript code. On Electron desktop builds with nodeIntegration enabled, this XSS can escalate to remote code execution by accessing Node.js modules. The vulnerability also bypasses user settings that disable JavaScript execution, as the CSS injection path still executes scripts. The vendor fixed this issue in version 3.7.0.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of the application, leading to potential remote code execution on Electron desktop builds with nodeIntegration enabled. This can result in full compromise of the affected system. The vulnerability bypasses user-configured JavaScript restrictions, increasing the risk of exploitation.
Mitigation Recommendations
A fix is available in SiYuan version 3.7.0. Users should upgrade to version 3.7.0 or later to remediate this vulnerability. No other mitigation guidance is provided or necessary as the issue is resolved in the fixed version.
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: 07/11/2026, 09:51:12 UTC
Last updated: 08/09/2026, 00:41:15 UTC
Views: 87
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.