CVE-2026-34449: CWE-942: Permissive Cross-domain Policy with Untrusted Domains in siyuan-note siyuan
CVE-2026-34449 is a critical vulnerability in SiYuan, a personal knowledge management system, affecting versions prior to 3. 6. 2. The flaw arises from an overly permissive Cross-Origin Resource Sharing (CORS) policy combined with Access-Control-Allow-Private-Network set to true, allowing any malicious website to inject JavaScript code via the API. This injected code executes in Electron's Node. js context with full operating system privileges the next time the user opens SiYuan's UI. Exploitation requires no user interaction beyond visiting a malicious website while SiYuan is running, enabling remote code execution (RCE). The vulnerability has been patched in version 3. 6. 2.
AI Analysis
Technical Summary
CVE-2026-34449 is a critical remote code execution vulnerability in SiYuan, a desktop knowledge management application built on Electron. The root cause is a permissive CORS policy that sets Access-Control-Allow-Origin to '*' and Access-Control-Allow-Private-Network to true, effectively allowing any external website to make cross-origin requests to SiYuan's API, including requests from private network addresses. An attacker hosting a malicious website can exploit this by injecting a JavaScript snippet into SiYuan's API responses. Because SiYuan runs on Electron, which integrates Chromium and Node.js, the injected JavaScript executes in the Node.js context with full OS-level privileges. This means the attacker can execute arbitrary code on the victim's machine without requiring any user interaction beyond visiting the malicious site while SiYuan is running. The malicious code executes the next time the user opens SiYuan's UI, enabling persistent compromise. The vulnerability affects all versions before 3.6.2, where the vendor has corrected the CORS policy to restrict origins and disabled Access-Control-Allow-Private-Network. The vulnerability is classified under CWE-942 (Permissive Cross-domain Policy with Untrusted Domains) and has a CVSS v3.1 score of 9.7, reflecting its critical severity and ease of exploitation.
Potential Impact
The impact of CVE-2026-34449 is severe for organizations and individuals using affected versions of SiYuan. Successful exploitation results in remote code execution with full OS privileges, allowing attackers to install malware, steal sensitive data, manipulate files, or move laterally within networks. Since no user interaction beyond visiting a malicious website is required, the attack surface is broad and can be triggered via phishing or malicious advertising. The persistence of the injected code upon next application launch increases the risk of prolonged compromise. Organizations relying on SiYuan for knowledge management, especially those handling sensitive or proprietary information, face risks of data breaches, intellectual property theft, and operational disruption. Additionally, since SiYuan is a desktop application, infected endpoints could serve as footholds for further network intrusion. The vulnerability’s exploitation could also undermine trust in Electron-based applications if not promptly mitigated.
Mitigation Recommendations
To mitigate CVE-2026-34449, organizations and users should immediately upgrade SiYuan to version 3.6.2 or later, where the vulnerability is patched. Until upgrading is possible, users should avoid visiting untrusted or suspicious websites while SiYuan is running to reduce exposure. Network administrators can implement egress filtering and web content filtering to block access to known malicious domains. Application sandboxing and endpoint protection solutions with behavioral detection can help identify and contain suspicious activity resulting from exploitation. Developers maintaining Electron-based applications should audit CORS policies and avoid overly permissive settings, especially Access-Control-Allow-Origin: * combined with Access-Control-Allow-Private-Network: true. Restricting CORS to trusted domains and disabling private network access unless explicitly required is critical. Monitoring application logs for unusual API requests and anomalous behavior can provide early detection. Finally, educating users about the risks of visiting untrusted websites while sensitive applications are running can reduce attack likelihood.
Affected Countries
United States, China, Germany, United Kingdom, Canada, Australia, France, Japan, South Korea, India
CVE-2026-34449: CWE-942: Permissive Cross-domain Policy with Untrusted Domains in siyuan-note siyuan
Description
CVE-2026-34449 is a critical vulnerability in SiYuan, a personal knowledge management system, affecting versions prior to 3. 6. 2. The flaw arises from an overly permissive Cross-Origin Resource Sharing (CORS) policy combined with Access-Control-Allow-Private-Network set to true, allowing any malicious website to inject JavaScript code via the API. This injected code executes in Electron's Node. js context with full operating system privileges the next time the user opens SiYuan's UI. Exploitation requires no user interaction beyond visiting a malicious website while SiYuan is running, enabling remote code execution (RCE). The vulnerability has been patched in version 3. 6. 2.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-34449 is a critical remote code execution vulnerability in SiYuan, a desktop knowledge management application built on Electron. The root cause is a permissive CORS policy that sets Access-Control-Allow-Origin to '*' and Access-Control-Allow-Private-Network to true, effectively allowing any external website to make cross-origin requests to SiYuan's API, including requests from private network addresses. An attacker hosting a malicious website can exploit this by injecting a JavaScript snippet into SiYuan's API responses. Because SiYuan runs on Electron, which integrates Chromium and Node.js, the injected JavaScript executes in the Node.js context with full OS-level privileges. This means the attacker can execute arbitrary code on the victim's machine without requiring any user interaction beyond visiting the malicious site while SiYuan is running. The malicious code executes the next time the user opens SiYuan's UI, enabling persistent compromise. The vulnerability affects all versions before 3.6.2, where the vendor has corrected the CORS policy to restrict origins and disabled Access-Control-Allow-Private-Network. The vulnerability is classified under CWE-942 (Permissive Cross-domain Policy with Untrusted Domains) and has a CVSS v3.1 score of 9.7, reflecting its critical severity and ease of exploitation.
Potential Impact
The impact of CVE-2026-34449 is severe for organizations and individuals using affected versions of SiYuan. Successful exploitation results in remote code execution with full OS privileges, allowing attackers to install malware, steal sensitive data, manipulate files, or move laterally within networks. Since no user interaction beyond visiting a malicious website is required, the attack surface is broad and can be triggered via phishing or malicious advertising. The persistence of the injected code upon next application launch increases the risk of prolonged compromise. Organizations relying on SiYuan for knowledge management, especially those handling sensitive or proprietary information, face risks of data breaches, intellectual property theft, and operational disruption. Additionally, since SiYuan is a desktop application, infected endpoints could serve as footholds for further network intrusion. The vulnerability’s exploitation could also undermine trust in Electron-based applications if not promptly mitigated.
Mitigation Recommendations
To mitigate CVE-2026-34449, organizations and users should immediately upgrade SiYuan to version 3.6.2 or later, where the vulnerability is patched. Until upgrading is possible, users should avoid visiting untrusted or suspicious websites while SiYuan is running to reduce exposure. Network administrators can implement egress filtering and web content filtering to block access to known malicious domains. Application sandboxing and endpoint protection solutions with behavioral detection can help identify and contain suspicious activity resulting from exploitation. Developers maintaining Electron-based applications should audit CORS policies and avoid overly permissive settings, especially Access-Control-Allow-Origin: * combined with Access-Control-Allow-Private-Network: true. Restricting CORS to trusted domains and disabling private network access unless explicitly required is critical. Monitoring application logs for unusual API requests and anomalous behavior can provide early detection. Finally, educating users about the risks of visiting untrusted websites while sensitive applications are running can reduce attack likelihood.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-03-27T18:18:14.895Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 69cc424fe6bfc5ba1d44f4aa
Added to database: 3/31/2026, 9:53:19 PM
Last enriched: 3/31/2026, 10:08:55 PM
Last updated: 4/1/2026, 5:36:26 AM
Views: 10
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.