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-34585: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in siyuan-note siyuan

0
High
VulnerabilityCVE-2026-34585cvecve-2026-34585cwe-79cwe-94
Published: Tue Mar 31 2026 (03/31/2026, 21:47:01 UTC)
Source: CVE Database V5
Vendor/Project: siyuan-note
Product: siyuan

Description

CVE-2026-34585 is a high-severity stored cross-site scripting (XSS) vulnerability in SiYuan, a personal knowledge management system, affecting versions prior to 3. 6. 2. The flaw arises from improper neutralization of input during web page generation, allowing crafted block attribute values containing mixed HTML entities and raw special characters to bypass server-side escaping. Attackers can embed malicious IAL values inside . sy documents packaged as . sy. zip files, which when imported and opened in the SiYuan Electron desktop client, execute injected JavaScript with Node/Electron API access. This leads to remote code execution (RCE) on the victim's machine. The vulnerability requires user interaction (importing and opening a malicious note) but no prior privileges.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/31/2026, 22:08:41 UTC

Technical Analysis

CVE-2026-34585 is a stored cross-site scripting vulnerability in the SiYuan personal knowledge management system, specifically affecting versions before 3.6.2. The vulnerability stems from improper neutralization of input during web page generation (CWE-79), where crafted block attribute values containing a mix of HTML entities and raw special characters bypass server-side attribute escaping. An attacker can create a malicious IAL (Inline Attribute Language) value embedded within a .sy document, which is then packaged as a .sy.zip archive. When a victim imports this archive using the standard Import -> SiYuan .sy.zip workflow and opens the note, the malicious attribute breaks out of its intended HTML context and injects an event handler, resulting in stored XSS. In the Electron-based desktop client, this XSS escalates to remote code execution because the injected JavaScript executes with full access to Node.js and Electron APIs, enabling arbitrary code execution on the victim’s system. The vulnerability requires user interaction to import and open the malicious note but does not require any authentication or elevated privileges. The vulnerability has a CVSS v3.1 base score of 8.6, reflecting high impact on confidentiality, integrity, and availability, with low attack complexity and no privileges required. The issue was fixed in SiYuan version 3.6.2, and users are strongly advised to update to this version or later to prevent exploitation.

Potential Impact

The vulnerability allows attackers to achieve remote code execution on the victim’s machine by exploiting a stored XSS flaw in the SiYuan desktop client. This can lead to full compromise of the affected system, including theft of sensitive data, installation of malware, lateral movement within networks, and persistent backdoors. Since SiYuan is used for personal knowledge management, attackers could also exfiltrate or manipulate confidential user notes and data. The requirement for user interaction (importing and opening a malicious note) somewhat limits the attack vector but does not eliminate risk, especially in environments where users frequently exchange or import .sy.zip files. The ability to execute arbitrary code with Node/Electron API access significantly elevates the threat, as it bypasses typical sandboxing protections found in web browsers. Organizations using SiYuan, particularly in sectors handling sensitive or proprietary information, face risks of data breaches, espionage, and operational disruption if this vulnerability is exploited.

Mitigation Recommendations

1. Upgrade SiYuan to version 3.6.2 or later immediately to apply the official patch addressing this vulnerability. 2. Implement strict file import policies and educate users to avoid importing .sy.zip files from untrusted or unknown sources. 3. Employ endpoint protection solutions capable of detecting suspicious Electron app behaviors and script injections. 4. Use application whitelisting to restrict execution of unauthorized scripts or binaries spawned by SiYuan. 5. Monitor logs and network traffic for unusual activity originating from SiYuan processes, especially after note imports. 6. Consider sandboxing or running SiYuan in a restricted environment to limit the impact of potential exploitation. 7. Regularly audit and review user workflows involving SiYuan to identify and mitigate risky practices involving file imports. 8. If feasible, disable or restrict the Import feature temporarily until the patch is applied in high-risk environments.

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-30T16:56:30.999Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69cc424fe6bfc5ba1d44f4c3

Added to database: 3/31/2026, 9:53:19 PM

Last enriched: 3/31/2026, 10:08:41 PM

Last updated: 3/31/2026, 11:03:49 PM

Views: 2

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