External risk intelligence

SiYuan Stored Cross-Site Scripting Leading to Remote Code Execution

CVE advisorySeverity: CRITICAL (CVSS 9.3)

CVE-2026-66396

SiYuan is a local-first personal note-taking application typically run as a desktop client or locally hosted service. The vulnerability requires an attacker with editor permissions to inject malicious content into a document, which must then be opened by a victim, making public internet exposure and remote exploitation in common deployments highly unlikely.

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

This advisory details a critical vulnerability in SiYuan's gallery and Kanban features that could allow an attacker with editor access to execute arbitrary code on a victim's system when they open an affected document. The main concern at this time is confirming if this specific functionality is in use and if any such documents could be exposed to malicious content.

  • Stored cross-site scripting allows code execution.
  • Confirms if we use this specific feature.
  • Understand exposure and relevance to our operations.

Attack Path

How an attacker could exploit the issue

An attacker with editor permissions could exploit this vulnerability by injecting malicious code into a document's image attribute. When a victim opens this document, the code can execute within the application, potentially leading to arbitrary code execution with full system access.

  • Requires editor access.
  • Victim must open a malicious document.
  • Risk of arbitrary code execution.

Live Threat

Current exploitation, exposure, and threat context

Stored cross-site scripting in SiYuan could impact user data and service behavior when an attacker with editor permissions injects malicious code into document cover images. This code could execute arbitrary commands with full Node.js access on a victim's system if they open the affected document.

  • User data and system integrity at risk.
  • Malicious code injected into document covers.
  • Arbitrary code execution on victim's system.

Operational Fix

Recommended remediation, mitigation, and detection steps

For SiYuan, the primary responsibility likely falls to the application owners who manage its deployment and usage, with support from the security team for exposure assessment. The first practical step is to inventory all instances of SiYuan, determine which are internet-facing or handle sensitive data, and identify the specific business units or individuals accountable for each. This allows for a risk-based remediation plan that considers the impact of potential exploitation.

  • Application owners should investigate deployment.
  • Verify editor access and document sharing practices.
  • Plan remediation based on exposure and criticality.

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 local-first personal note-taking application. It is commonly used as a desktop client or a locally hosted service for managing knowledge bases, organizing documents with advanced features like Kanban boards, and storing data in a structured, individual format.

What does CVE-2026-66396 mean?

This CVE identifies a Cross-Site Scripting (CWE-79) vulnerability. Specifically, the application fails to properly clean data in image attributes. This allows a malicious user to store scripts that execute unauthorized actions when a document is opened. Because of how the software is built, this script execution can escalate into full control of the application's environment.

How is this vulnerability triggered?

An attacker must have editor permissions to inject malicious code into a gallery or Kanban cover image. The vulnerability is triggered only when a victim opens an affected document. Simply having the software installed or possessing the document is not enough to execute the code; the specific act of rendering the malicious image attribute within the application is required.

How relevant is this CVE to my environment?

According to Halo Surface Signal, this vulnerability is very unlikely to pose a broad risk. Because SiYuan is typically a local-first desktop application, it is rarely exposed to the public internet in a way that allows remote exploitation. The risk is highest in environments where users share documents from untrusted editors or collaborate on shared, internet-accessible instances.

What should I do if I use SiYuan?

Prioritize updating your installation to version 3.7.2 or later to resolve the rendering issue. In the meantime, audit your document sharing practices, especially if you collaborate with others who have editor-level access. Verify which instances are internet-facing versus local-only to determine where your most immediate attention is needed.

References