External risk intelligence

SiYuan Stored XSS Via Asset Picker Filename

CVE advisorySeverity: CRITICAL (CVSS 9.4)

CVE-2026-145039

SiYuan is a personal knowledge management tool primarily designed for local or private use. While it can be deployed in environments where it might be reachable over a network, it is not a typical internet-facing service, gateway, or edge application. The requirement for a user to interact with the asset picker and import a malicious file further makes widespread public internet exposure and exploitation unlikely.

Cross-site Scripting

Halo Surface Signal: 2 out of 5 — 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 SiYuan software that could allow attackers to execute code on a user's system by crafting a malicious file. This occurs when a user interacts with the asset picker, potentially triggering script execution. The main concern is to confirm if this software is used within our environment and if so, to what extent.

  • Unescaped filenames can lead to code execution.
  • Matters if SiYuan is used to manage sensitive information.
  • Confirm SiYuan usage and assess potential exposure.

Attack Path

How an attacker could exploit the issue

An attacker could compromise a SiYuan instance by crafting a malicious `.sy.zip` import file containing a specially designed asset filename. When a user with the necessary privileges opens the asset picker in SiYuan, the unescaped filename is rendered, triggering stored cross-site scripting and potentially leading to the execution of code on the user's system via Node APIs.

  • Requires user interaction to import file.
  • Victim must open asset picker.
  • Potential for code execution.

Live Threat

Current exploitation, exposure, and threat context

A stored cross-site scripting vulnerability could allow an attacker to execute arbitrary code on a user's system when they open the asset picker after a specially crafted import. This could occur if an attacker can trick a user into importing a malicious file with a crafted filename.

  • System files and user data could be affected.
  • Malicious filename in imported file.
  • Arbitrary code execution on user's system.

Operational Fix

Recommended remediation, mitigation, and detection steps

The SiYuan application owner is responsible for managing this vulnerability. The first practical step is to identify all instances of SiYuan within the environment, confirm their network exposure and business criticality, and then coordinate remediation efforts with the vendor.

  • Application owners must address this issue.
  • Verify all SiYuan deployments and their reachability.
  • Plan vendor-coordinated remediation.

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 privacy-first, local-first personal knowledge management tool that supports block-based editing and local data storage. It is used by individuals and teams to organize notes, documents, and assets. Because it is designed for private note-taking, it often runs as a local application or a private self-hosted service, though some users may deploy it in shared or network-accessible environments.

What is the vulnerability in CVE-2026-145039?

This CVE describes a stored cross-site scripting (XSS) vulnerability, classified as CWE-79. The issue occurs within the protyle asset picker, which fails to properly sanitize filenames when displaying them. Because the application handles these names using innerHTML, a malicious filename can inject executable code that the application inadvertently runs, potentially reaching Node APIs.

How is this vulnerability triggered?

An attacker must trick a user into importing a specifically crafted .sy.zip file containing a malicious filename. The code execution is not triggered merely by the file's presence; the victim must intentionally open the asset picker within the SiYuan interface to render the list containing that name. Viewing notes or performing other actions without interacting with this specific picker component does not trigger the bug.

How relevant is this for my environment?

According to Halo Surface Signal, this vulnerability is unlikely to be a high-risk external threat for most organizations because SiYuan is typically used for private, local tasks rather than as an internet-facing gateway. If you host SiYuan, focus on whether your deployment is reachable over a network and how likely it is for users to import untrusted files, as this interaction is the primary vector.

What should I do if I use SiYuan?

First, conduct an inventory to identify all instances of SiYuan running in your environment to understand your footprint. Once mapped, confirm whether these instances are accessible to unauthorized users or exposed to the internet. Follow the official guidance from the SiYuan developers, specifically updating to version 3.8.11 or later, which contains the necessary security improvements to handle asset filenames safely.

References