SiYuan XSS to RCE (CVE-2026-34448)
CVE-2026-34448
CVE-2026-34448 in SiYuan prior to 3.6.2 lets attackers embed XSS in image URLs for arbitrary system command execution via Electron. Upgrade to 3.6.2.
Patch now - CVE-2026-34448 is a critical stored XSS in SiYuan prior to 3.6.2 that escalates to arbitrary command execution on the host OS via the Electron desktop client’s insecure Node.js integration. Upgrade to version 3.6.2 immediately to block exploitation.
Overview
A critical security vulnerability, tracked as CVE-2026-34448, affects the SiYuan personal knowledge management system. Versions prior to 3.6.2 contain a stored cross-site scripting (XSS) flaw that, when exploited in the Electron desktop application, escalates to arbitrary command execution on the victim’s operating system.
Vulnerability Details
The flaw resides in how SiYuan handles image URLs in the Attribute View’s asset field. An attacker can embed a malicious URL in this field. When another user later opens a Gallery or Kanban view configured to use “Cover From -> Asset Field,” the system incorrectly treats the attacker-controlled URL as an image source. The malicious string is stored and then injected directly into an HTML <img> tag without proper sanitization, triggering the XSS.
The severity is critically amplified in the SiYuan Electron desktop client, where nodeIntegration is enabled and contextIsolation is disabled. This insecure configuration allows the injected JavaScript code to break out of the web sandbox and interact with the underlying Node.js environment, granting an attacker the ability to run arbitrary system commands with the privileges of the logged-in user.
Impact
Successful exploitation can lead to a complete compromise of the victim’s workstation. An attacker could steal sensitive local files, install malware, or use the system as a foothold for lateral movement within a network. The low attack complexity and the requirement for only low privileges to plant the malicious payload make this a significant threat, especially in collaborative environments where SiYuan notes are shared.
Remediation and Mitigation
The primary and immediate action is to upgrade SiYuan to version 3.6.2 or later, which contains the patch. Users of the desktop client should ensure the application updates automatically or manually download the latest version from the official source.
Until the patch can be applied, users should exercise caution with shared notes and avoid opening unfamiliar Gallery or Kanban views. Administrators should review logs for any unexpected activity. For broader context on the risks of software vulnerabilities, recent cybersecurity news can be found at security news.
Security Insight
This vulnerability exemplifies the dangerous intersection of classic web vulnerabilities (XSS) and insecure default configurations in Electron applications. The pattern of enabling nodeIntegration without contextIsolation has been a recurring theme in multiple high-impact Electron app exploits over the years. CVE-2026-34448 underscores that for applications handling user data, security must be a primary design constraint in the desktop build, not just the web backend.
Further Reading
Never miss a critical vulnerability
Get real-time security alerts delivered to your preferred platform.
Am I Affected by CVE-2026-34448?
Pick an ecosystem, paste your installed version, and we'll compare it against the fixed version published on OSV.dev. Browser-only — nothing is sent to a server.
Heuristic comparison only. Always cross-check against the vendor advisory before making patching decisions.
Related Advisories
SiYuan is a personal knowledge management system. Prior to version 3.5.9, an unauthenticated reflected XSS vulnerability exists in the dynamic icon API endpoint "GET /api/icon/getDynamicIcon" when typ...
SiYuan is a personal knowledge management system. Prior to version 3.6.2, a vulnerability allows crafted block attribute values to bypass server-side attribute escaping when an HTML entity is mixed wi...
SiYuan is a personal knowledge management system. In versions 3.6.0 and below, SanitizeSVG has an incomplete blocklist — it blocks data:text/html and data:image/svg+xml in href attributes but misses d...
SiYuan is an open-source personal knowledge management system. In versions 3.6.3 and below, Mermaid diagrams are rendered with securityLevel set to "loose", and the resulting SVG is injected into the ...
Other B3log Siyuan Vulnerabilities
SiYuan is an open-source personal knowledge management system. In versions 3.6.3 and below, Mermaid diagrams are rendered with securityLevel set to "loose", and the resulting SVG is injected into the ...
SiYuan is a personal knowledge management system. Prior to version 3.6.2, a malicious website can achieve Remote Code Execution (RCE) on any desktop running SiYuan by exploiting the permissive CORS po...
SiYuan is a personal knowledge management system. Prior to version 3.6.2, a vulnerability allows crafted block attribute values to bypass server-side attribute escaping when an HTML entity is mixed wi...
SiYuan is a personal knowledge management system. In versions 3.6.0 and below, the /api/lute/html2BlockDOM on the desktop copies local files pointed to by file:// links in pasted HTML into the workspa...