Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-32751: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in siyuan-note siyuan

0
Medium
VulnerabilityCVE-2026-32751cvecve-2026-32751cwe-79
Published: Thu Mar 19 2026 (03/19/2026, 21:11:59 UTC)
Source: CVE Database V5
Vendor/Project: siyuan-note
Product: siyuan

Description

SiYuan is a personal knowledge management system. In versions 3.6.0 and below, the mobile file tree (MobileFiles.ts) renders notebook names via innerHTML without HTML escaping when processing renamenotebook WebSocket events. The desktop version (Files.ts) properly uses escapeHtml() for the same operation. An authenticated user who can rename notebooks can inject arbitrary HTML/JavaScript that executes on any mobile client viewing the file tree. Since Electron is configured with nodeIntegration: true and contextIsolation: false, the injected JavaScript has full Node.js access, escalating stored XSS to full remote code execution. The mobile layout is also used in the Electron desktop app when the window is narrow, making this exploitable on desktop as well. This issue has been fixed in version 3.6.1.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/27/2026, 19:07:46 UTC

Technical Analysis

CVE-2026-32751 is a stored cross-site scripting vulnerability affecting SiYuan, a personal knowledge management system, in versions prior to 3.6.1. The vulnerability exists in the mobile file tree component (MobileFiles.ts), which processes renamenotebook WebSocket events by rendering notebook names directly via innerHTML without applying HTML escaping. This contrasts with the desktop component (Files.ts), which correctly escapes HTML. An authenticated user with rename privileges can inject arbitrary HTML or JavaScript code into notebook names. When other users view the file tree on mobile clients, or on desktop clients using the mobile layout (narrow window), the injected script executes. Because SiYuan is built on Electron with nodeIntegration set to true and contextIsolation set to false, the injected JavaScript gains full Node.js API access, allowing escalation from stored XSS to remote code execution (RCE). This means an attacker can execute arbitrary code on the victim's device, potentially compromising confidentiality, integrity, and availability of the system. The vulnerability requires authentication and user interaction (viewing the file tree). The issue was patched in version 3.6.1 by properly escaping HTML input in the mobile file tree component. No public exploits have been reported so far.

Potential Impact

The impact of CVE-2026-32751 is significant for organizations using SiYuan versions below 3.6.1, especially those with multiple users who have notebook rename privileges. An attacker with authenticated access can inject malicious scripts that execute on other users' devices, leading to remote code execution due to Electron's insecure configuration. This can result in full system compromise of the client device, data theft, unauthorized actions, and potential lateral movement within the organization's network. Because the vulnerability affects both mobile clients and desktop clients running the mobile layout, a wide range of endpoints are at risk. The requirement for authentication limits exposure to internal or trusted users, but insider threats or compromised accounts could exploit this. The absence of known exploits in the wild reduces immediate risk but does not eliminate it. Organizations relying on SiYuan for sensitive knowledge management should consider this a medium risk with potential for severe consequences if exploited.

Mitigation Recommendations

To mitigate CVE-2026-32751, organizations should immediately upgrade all SiYuan installations to version 3.6.1 or later, where the vulnerability is patched by proper HTML escaping in the mobile file tree component. Additionally, restrict notebook rename privileges to trusted users only, minimizing the number of accounts capable of injecting malicious content. Review and harden Electron application configurations by disabling nodeIntegration and enabling contextIsolation to reduce the impact of any future XSS vulnerabilities. Implement network segmentation and endpoint protection to detect and prevent exploitation attempts. Monitor WebSocket traffic and application logs for suspicious renamenotebook events or unexpected HTML content. Educate users about the risks of interacting with untrusted notebook names and encourage reporting of unusual behavior. Finally, consider deploying runtime application self-protection (RASP) or endpoint detection and response (EDR) solutions to detect exploitation attempts in real time.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-03-13T18:53:03.532Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 69bca5a4e32a4fbe5f143352

Added to database: 3/20/2026, 1:40:52 AM

Last enriched: 3/27/2026, 7:07:46 PM

Last updated: 5/3/2026, 10:07:23 AM

Views: 72

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses