CVE-2026-33066: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in siyuan-note siyuan
SiYuan is a personal knowledge management system. In versions 3.6.0 and below, the backend renderREADME function uses lute.New() without calling SetSanitize(true), allowing raw HTML embedded in Markdown to pass through unmodified. The frontend then assigns the rendered HTML to innerHTML without any additional sanitization. A malicious package author can embed arbitrary JavaScript in their README that executes when a user clicks to view the package details. Because SiYuan's Electron configuration enables nodeIntegration: true with contextIsolation: false, this XSS escalates directly to full Remote Code Execution. The issue was patched in version 3.6.1.
AI Analysis
Technical Summary
CVE-2026-33066 is a medium-severity vulnerability affecting SiYuan, a personal knowledge management system, specifically versions prior to 3.6.1. The root cause lies in the backend renderREADME function, which uses the lute.New() Markdown renderer without enabling the SetSanitize(true) option. This omission allows raw HTML embedded within Markdown content to pass through unfiltered. The frontend then assigns this rendered HTML directly to the DOM via innerHTML without any additional sanitization or escaping. A malicious package author can exploit this by embedding arbitrary JavaScript code inside their README file. When a user clicks to view the package details, the malicious script executes in the context of the Electron application. Critically, SiYuan’s Electron environment is configured with nodeIntegration set to true and contextIsolation set to false, which means the JavaScript code runs with full Node.js privileges. This configuration allows the XSS attack to escalate to full remote code execution on the victim’s machine, enabling an attacker to execute arbitrary commands, access local files, or install malware. The vulnerability was publicly disclosed on March 20, 2026, and patched in version 3.6.1. The CVSS 4.0 vector indicates network attack vector, low attack complexity, no privileges or user interaction required, and low scope impact, resulting in a base score of 5.3. No known exploits have been reported in the wild to date.
Potential Impact
The primary impact of this vulnerability is the potential for remote code execution on affected systems, which can lead to complete compromise of the host machine running SiYuan. Attackers can execute arbitrary commands, steal sensitive data, install persistent malware, or move laterally within an organization’s network. Because SiYuan is a personal knowledge management system, it may contain sensitive intellectual property, personal data, or business-critical information, increasing the risk of data breaches. The vulnerability is exploitable remotely without user interaction, making it a significant risk especially in environments where users frequently install or view third-party packages or notes. Organizations using affected versions in enterprise or collaborative settings face risks of insider threats or supply chain attacks via malicious package authors. The Electron configuration exacerbates the impact by allowing escalation from XSS to full system compromise. Although no active exploits are reported, the ease of exploitation and severity of impact warrant urgent remediation.
Mitigation Recommendations
Organizations and users should immediately upgrade SiYuan to version 3.6.1 or later, where the vulnerability is patched by enabling HTML sanitization in the Markdown renderer. Until upgrading, users should avoid opening or viewing README files from untrusted or unknown package authors. Electron application configurations should be hardened by disabling nodeIntegration and enabling contextIsolation to reduce the risk of XSS leading to RCE. Implementing Content Security Policy (CSP) within the Electron app can further mitigate script injection risks. Regularly audit and monitor package sources for suspicious content. Employ endpoint protection solutions capable of detecting anomalous script execution or unauthorized command execution. Educate users about the risks of opening untrusted content within the application. Finally, maintain up-to-date backups and incident response plans to quickly recover from potential compromises.
Affected Countries
United States, China, Germany, Japan, South Korea, United Kingdom, France, Canada, Australia, India
CVE-2026-33066: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in siyuan-note siyuan
Description
SiYuan is a personal knowledge management system. In versions 3.6.0 and below, the backend renderREADME function uses lute.New() without calling SetSanitize(true), allowing raw HTML embedded in Markdown to pass through unmodified. The frontend then assigns the rendered HTML to innerHTML without any additional sanitization. A malicious package author can embed arbitrary JavaScript in their README that executes when a user clicks to view the package details. Because SiYuan's Electron configuration enables nodeIntegration: true with contextIsolation: false, this XSS escalates directly to full Remote Code Execution. The issue was patched in version 3.6.1.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-33066 is a medium-severity vulnerability affecting SiYuan, a personal knowledge management system, specifically versions prior to 3.6.1. The root cause lies in the backend renderREADME function, which uses the lute.New() Markdown renderer without enabling the SetSanitize(true) option. This omission allows raw HTML embedded within Markdown content to pass through unfiltered. The frontend then assigns this rendered HTML directly to the DOM via innerHTML without any additional sanitization or escaping. A malicious package author can exploit this by embedding arbitrary JavaScript code inside their README file. When a user clicks to view the package details, the malicious script executes in the context of the Electron application. Critically, SiYuan’s Electron environment is configured with nodeIntegration set to true and contextIsolation set to false, which means the JavaScript code runs with full Node.js privileges. This configuration allows the XSS attack to escalate to full remote code execution on the victim’s machine, enabling an attacker to execute arbitrary commands, access local files, or install malware. The vulnerability was publicly disclosed on March 20, 2026, and patched in version 3.6.1. The CVSS 4.0 vector indicates network attack vector, low attack complexity, no privileges or user interaction required, and low scope impact, resulting in a base score of 5.3. No known exploits have been reported in the wild to date.
Potential Impact
The primary impact of this vulnerability is the potential for remote code execution on affected systems, which can lead to complete compromise of the host machine running SiYuan. Attackers can execute arbitrary commands, steal sensitive data, install persistent malware, or move laterally within an organization’s network. Because SiYuan is a personal knowledge management system, it may contain sensitive intellectual property, personal data, or business-critical information, increasing the risk of data breaches. The vulnerability is exploitable remotely without user interaction, making it a significant risk especially in environments where users frequently install or view third-party packages or notes. Organizations using affected versions in enterprise or collaborative settings face risks of insider threats or supply chain attacks via malicious package authors. The Electron configuration exacerbates the impact by allowing escalation from XSS to full system compromise. Although no active exploits are reported, the ease of exploitation and severity of impact warrant urgent remediation.
Mitigation Recommendations
Organizations and users should immediately upgrade SiYuan to version 3.6.1 or later, where the vulnerability is patched by enabling HTML sanitization in the Markdown renderer. Until upgrading, users should avoid opening or viewing README files from untrusted or unknown package authors. Electron application configurations should be hardened by disabling nodeIntegration and enabling contextIsolation to reduce the risk of XSS leading to RCE. Implementing Content Security Policy (CSP) within the Electron app can further mitigate script injection risks. Regularly audit and monitor package sources for suspicious content. Employ endpoint protection solutions capable of detecting anomalous script execution or unauthorized command execution. Educate users about the risks of opening untrusted content within the application. Finally, maintain up-to-date backups and incident response plans to quickly recover from potential compromises.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-03-17T19:27:06.343Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 69bdbd91e2bf98efc48d0983
Added to database: 3/20/2026, 9:35:13 PM
Last enriched: 3/20/2026, 9:36:44 PM
Last updated: 3/21/2026, 4:04:09 AM
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.
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.