External risk intelligence

SiYuan Stored Cross-Site Scripting Leading to Remote Code Execution

CVE advisorySeverity: CRITICAL (CVSS 9.4)

CVE-2026-130682

SiYuan is a personal note-taking application that runs as a local Electron-based client. The vulnerability requires the import or synchronization of a malicious file, which is not a public-facing internet service, gateway, or network-accessible management interface. The attack surface is localized to the client software environment.

Code Injection

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 vulnerability affects note-taking software where a flaw in handling table captions can allow malicious code to execute when a specially crafted file is imported or synchronized. This could potentially lead to unauthorized access or control of the affected user's system.

  • Flaw lets malicious code run via note files.
  • Potential for system compromise needs verification.
  • Confirm if this note software is in use.

Attack Path

How an attacker could exploit the issue

An attacker could begin by crafting a malicious note file. If a user imports or synchronizes this file into the SiYuan application, the attacker's injected code within the note's caption can execute with elevated privileges within the application's environment, potentially leading to the execution of arbitrary code on the user's system.

  • Requires user to import or sync a file.
  • Injects code via a table caption attribute.
  • Leads to remote code execution.

Live Threat

Current exploitation, exposure, and threat context

This vulnerability could allow attackers to execute arbitrary code on the Electron client when a user imports or synchronizes a specially crafted table block. This occurs because the caption attribute of a table block is not properly sanitized before being persisted, enabling the injection of malicious code that can run within the client's Node.js environment.

  • Arbitrary code execution in the client.
  • Triggered by importing/syncing malicious data.
  • Compromised user data and system access.

Operational Fix

Recommended remediation, mitigation, and detection steps

SiYuan, a personal note-taking application, has a vulnerability in its handling of table block captions that can lead to stored cross-site scripting and remote code execution within the Electron client. Real-world remediation likely falls to individuals managing the application or the endpoints where it's installed, as it's not a network-facing service. The first practical step is to identify instances of SiYuan, confirm if imported or synced files present a risk, and then plan for applying the vendor's fix.

  • Identify local SiYuan installations.
  • Verify imported/synced files for malicious content.
  • Plan vendor fix deployment.

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, privacy-focused note-taking application built on the Electron framework. Users utilize it to organize knowledge through a block-based editor that supports rich formatting, such as tables. Because it functions as a desktop client rather than a cloud-only service, it stores data and application configurations directly on the user's local machine.

How does CVE-2026-130682 work?

This vulnerability is classified as CWE-94: Improper Control of Generation of Code. In simple terms, the application fails to scrub or 'sanitize' specific metadata—specifically table captions—before saving them. Because the application uses Electron, an attacker can insert a malicious command into these captions. When the software reads this data, it mistakenly executes the command as if it were part of the program itself.

Do I need to be online for this to trigger?

The vulnerability is triggered by the process of importing or synchronizing files, not merely by being connected to the internet. While an attacker could distribute a malicious file via a sync service, the code execution happens locally when your SiYuan client processes the compromised table caption. Simply viewing a note that does not contain a crafted table caption will not trigger the flaw.

Is this a risk to my network?

According to Halo Surface Signal, this is very unlikely to affect your wider network. SiYuan is a personal, client-side application rather than a public-facing internet service or gateway. The risk is constrained to the local environment where the application is installed, meaning an attacker generally needs to influence the specific files you choose to import or synchronize.

How do I protect my system?

Your first step is to locate all installations of SiYuan on your devices to ensure you have a clear inventory. Once identified, avoid importing or synchronizing note files from untrusted or unknown sources, as these are the primary vectors for the exploit. Finally, check for and apply the official update from the vendor to resolve the caption-handling flaw permanently.

References