External risk intelligence

SiYuan Remote Code Execution via Permissive CORS Policy

CVE advisorySeverity: CRITICAL (CVSS 9.6)

CVE-2026-34449

SiYuan is a personal knowledge management desktop application intended for local use. While it uses web technologies, it is not an internet-facing service, gateway, or edge application; exposure requires a user to be running the local desktop client while simultaneously visiting a malicious website, which does not constitute typical public network exposure.

Remote Code Execution

B3log Siyuan

before 3.6.2

Halo Surface Signal: 1 out of 5 — much less likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

A vulnerability has been identified in the SiYuan personal knowledge management system that could allow a malicious website to execute arbitrary code on a user's computer without direct interaction, simply by visiting the site while SiYuan is active. This issue stems from how the system handles network requests and its interaction with the underlying operating system.

  • Malicious sites can run code on your computer.
  • Users visit websites; SiYuan is running in the background.
  • Confirm if SiYuan is used internally.

Attack Path

How an attacker could exploit the issue

An attacker could compromise a user's computer by luring them to a malicious website. If the user has the SiYuan knowledge management application running, the website can send specially crafted code through the application's API. This code then executes with the operating system's full privileges when the user next opens SiYuan's interface, potentially leading to remote code execution.

  • Entry condition: User visits a malicious website.
  • Trigger point: Opening SiYuan's user interface.
  • Resulting risk: Full operating system access.

Live Threat

Current exploitation, exposure, and threat context

When a user visits a malicious website while SiYuan is running, a critical vulnerability allows for remote code execution on their desktop. This is because a permissive CORS policy enables a malicious JavaScript snippet to be injected via the API, which then executes with full operating system access within SiYuan's Electron Node.js context. No further user interaction is needed beyond opening SiYuan's user interface after visiting the compromised site.

  • System files and user data could be affected.
  • Exposure could happen via a malicious website visit.
  • Remote code execution on the user's desktop is a realistic consequence.

Operational Fix

Recommended remediation, mitigation, and detection steps

The SiYuan personal knowledge management system is affected by a critical vulnerability allowing remote code execution. Application owners or system administrators responsible for SiYuan deployments should initiate an asset inventory to identify all instances of the software. Prioritize confirmation of reachability and business criticality for each identified instance to inform risk-based remediation planning and engage the appropriate teams for necessary updates or mitigations.

  • Identify SiYuan instances and assess risk.
  • Confirm reachability and business criticality.
  • Plan and coordinate remediation efforts.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is SiYuan?

SiYuan is a personal knowledge management system designed to help users organize information, notes, and documents. It runs as a desktop application, meaning it operates locally on your computer rather than as a hosted cloud service. It leverages web technologies to provide its interface and functionality.

What is the vulnerability in CVE-2026-34449?

This vulnerability is classified as CWE-942, or Improperly Restricted Cross-Origin Resource Sharing (CORS). Essentially, the application is configured to accept network requests from any origin too permissively. This flaw allows a website you visit to send commands directly to SiYuan, which then executes those commands with the full permissions of your computer's operating system.

How does an attacker trigger this bug?

An attacker triggers this by luring you to a malicious website while your SiYuan desktop application is running in the background. Simply browsing to the site is enough; you do not need to click anything specific inside the application. The code is injected via the API and runs automatically the next time you open the SiYuan interface. This does not happen if the application is completely closed when you visit the site.

Is my computer at risk if I use SiYuan?

According to Halo Surface Signal, this risk is considered 'very unlikely' because SiYuan is a desktop application intended for local use, not an internet-facing service or server. Because you must be running the local client and actively browsing the web for an attack to succeed, it lacks the typical public exposure found in servers that are always accessible to the open internet.

How do I fix the CVE-2026-34449 vulnerability?

The primary fix is to update your SiYuan software to version 3.6.2 or newer, which resolves the permissive CORS policy issue. If you use this software, identify where it is installed on your systems and prioritize updating these instances immediately. Ensuring you are on the latest version removes the pathway that allows external websites to communicate with your local SiYuan installation.

References