External risk intelligence

SiYuan Stored XSS via Image Attribute Injection

CVE advisorySeverity: CRITICAL (CVSS 9.4)

CVE-2026-130679

SiYuan is a personal note-taking application primarily used as a local desktop client. The vulnerability requires a victim to open a specifically crafted note or attribute panel within their own local application instance, which does not constitute a public-facing service or network-accessible gateway.

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 critical vulnerability exists in SiYuan, a note-taking application, that could allow an attacker to execute commands on a user's system if they can influence stored values and trick the user into opening a specially crafted note.

  • Attackers can run commands by tricking users.
  • High severity, impacts individual user applications.
  • Confirm relevance and verify exposure to affected data.

Attack Path

How an attacker could exploit the issue

An attacker with the ability to store Attribute View asset values can inject malicious scripts by embedding a crafted image URL into the `src` attribute. When a victim opens a note or attribute panel containing this crafted value within the desktop application, the embedded script can execute operating system commands.

  • Attacker stores malicious image URL.
  • Victim opens crafted note or panel.
  • OS commands may execute.

Live Threat

Current exploitation, exposure, and threat context

This vulnerability could impact users of the SiYuan desktop app when they open notes containing specially crafted image URLs. If an attacker can convince a user to store such a URL in an Attribute View asset, the embedded script could execute OS commands via Node.js when the user accesses the note or its attribute panel.

  • Affected asset: Stored Attribute View values.
  • Exposure: Malicious image URL in stored note.
  • Consequence: Potential execution of OS commands.

Operational Fix

Recommended remediation, mitigation, and detection steps

The stored cross-site scripting vulnerability in SiYuan impacts users of the desktop application who can store specific asset values. The immediate first step is to identify all instances of SiYuan, confirm if any are business-critical or expose user data, and then locate the accountable owner for remediation planning.

  • Identify SiYuan instances and owners.
  • Verify asset value storage and reachability.
  • Plan remediation or 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?

SiYuan is a privacy-focused, local-first note-taking application. It functions as a desktop client where users maintain a personal knowledge base. Because it runs locally and supports complex data management features like Attribute Views—which allow users to tag, categorize, and organize assets—it provides a versatile environment for documentation, but also creates specific areas where stored data is processed and rendered by the application interface.

What is the vulnerability in CVE-2026-130679?

This is a Stored Cross-Site Scripting (XSS) vulnerability, classified as CWE-79. It occurs because the application fails to properly sanitize input in its Attribute View system. By injecting a malicious image URL containing specific control characters and an error handler, an attacker can trick the application into executing unauthorized code directly on the user's operating system via the integrated Node.js environment.

How does the script execution trigger?

The attack requires a two-step process: first, a malicious URL must be saved within an Attribute View asset; second, a victim must open that note or its corresponding attribute panel. Merely storing the note does not trigger the vulnerability. If the victim never views the crafted data in the application interface, the malicious script remains dormant and no commands are executed.

Do I need to worry about this if I use SiYuan locally?

According to Halo Surface Signal, this is very unlikely to affect most users because SiYuan is typically used as a local desktop client rather than a public-facing service. While the vulnerability carries a critical severity, it depends on the victim interacting with malicious content within their own private application instance. It is not a network-accessible gateway that an attacker can reach remotely without prior access to your note data.

How should I respond to this threat?

If you use the SiYuan desktop application, your first step is to identify your installation and verify if you are running a version earlier than 3.8.10. Audit any shared notes or collaborative spaces where external data or untrusted attribute values might be imported. Locate the individuals responsible for maintaining these notes and plan to update your software to a patched version to ensure input sanitization is correctly applied.

References