External risk intelligence

SiYuan Stored Cross-Site Scripting Allows Remote Code Execution

CVE advisorySeverity: CRITICAL (CVSS 9.4)

CVE-2026-130678

SiYuan is a local-first personal knowledge management application typically installed on desktop or local server environments for individual use. The vulnerability requires user interaction within the application interface to trigger, and it is not designed as a public-facing web service or edge gateway. Consequently, it lacks common public internet exposure.

Cross-site Scripting

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 security vulnerability exists in SiYuan software, allowing for the injection of malicious code through specially crafted column names. This could potentially lead to the execution of arbitrary scripts with elevated privileges on a user's desktop if they interact with the compromised element. The primary concern is confirming whether your organization utilizes this specific software and is exposed.

  • Code execution risk from malicious column names.
  • Leadership concern is confirming software relevance.
  • Verify if this specific software is in use.

Attack Path

How an attacker could exploit the issue

Attackers with low-privileged access can inject malicious scripts into SiYuan by storing specially crafted attribute view column names. This can occur through various import or synchronization methods, or when adding/duplicating columns. When a user interacts with these compromised columns, the embedded scripts can execute with elevated Node.js privileges, potentially leading to code execution on the user's system.

  • Requires authenticated, low-privileged access.
  • User interaction with crafted column names.
  • Leads to script execution with elevated privileges.

Live Threat

Current exploitation, exposure, and threat context

This vulnerability could allow an attacker to execute script within the application by storing malicious content in column names. When a user interacts with these columns, injected JavaScript could run, potentially leading to code execution with Node.js privileges on the user's desktop.

  • Stored script execution.
  • User interaction with malicious columns.
  • Code execution with Node.js privileges.

Operational Fix

Recommended remediation, mitigation, and detection steps

SiYuan's stored XSS vulnerability impacts users interacting with specific features, potentially allowing unauthorized code execution. Given its desktop application nature and local-first design, ownership likely falls to end-users or IT support responsible for desktop environments, with coordination for vendor updates. The first practical step is to identify all instances of SiYuan, confirm user interaction is required to trigger the vulnerability, and verify if desktop privileges are elevated.

  • End-users/desktop support own this issue.
  • Verify user interaction and privilege elevation.
  • Coordinate vendor update or implement risk reduction.

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 software?

SiYuan is a privacy-focused, local-first personal knowledge management application. Users typically run it as a desktop client or a self-hosted local server to organize notes, data, and information in a structured, relational way using features like Attribute Views.

What does CVE-2026-130678 mean by stored cross-site scripting?

This vulnerability, classified as CWE-79, means the application fails to properly sanitize input. An attacker can store malicious code within data fields, such as column names. When the application displays this stored data, the browser or interface treats the injected code as legitimate instructions, executing them unexpectedly.

How is the malicious code triggered in SiYuan?

The attack occurs when a user interacts with a compromised column, such as by adding or duplicating it. The vulnerability is not triggered by simply viewing a page; it requires specific user actions within the interface to force the application to process and execute the embedded scripts.

Is my instance of SiYuan at risk?

According to Halo Surface Signal, this software is typically designed for individual use on desktop or local server environments, making it very unlikely to be exposed as a public-facing web service. If your installation is strictly local, the attack surface is significantly smaller than that of a public internet-facing application.

What are the first steps to address this vulnerability?

Your priority is to identify all installations of SiYuan within your environment. Since the vulnerability requires specific user interaction, verify if any users are importing untrusted data or project files. Simultaneously, check for and apply official software updates from the vendor to resolve the underlying issue.

References