External risk intelligence

SiYuan Stored Cross-Site Scripting Vulnerability Via Encrypted Notebook Import

CVE advisorySeverity: CRITICAL (CVSS 9.0)

CVE-2026-145038

SiYuan is a personal note-taking application primarily used as a local desktop client. The vulnerability requires a user to manually import a malicious notebook archive and interact with a specific UI dialog, making it a client-side execution vector that does not involve public-facing network services or internet-accessible attack surfaces.

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 cross-site scripting vulnerability has been identified in SiYuan, a note-taking application. This issue could allow attackers to execute malicious scripts within the application's interface when a user imports a specially crafted notebook archive and accesses a specific dialog. The primary concern is confirming if this type of application and the specific user interaction are relevant to our environment.

  • Allows script execution via imported notebooks.
  • Confirms relevance and exposure for this tool.
  • Assess potential impact if used locally.

Attack Path

How an attacker could exploit the issue

An attacker can initiate an attack by crafting a notebook archive with malicious asset names. This archive, when imported by a victim into SiYuan, will trigger a stored cross-site scripting vulnerability within the unused asset cleanup dialog. This could lead to the execution of arbitrary scripts within the SiYuan interface, potentially compromising desktop files.

  • Requires importing a crafted notebook archive.
  • Triggered by opening the asset cleanup dialog.
  • Risk of script execution in the application.

Live Threat

Current exploitation, exposure, and threat context

When a user imports a crafted notebook archive into SiYuan and opens the unused asset cleanup dialog, the imported asset names could be processed in a way that executes script within the SiYuan interface, potentially putting desktop files at risk.

  • Desktop files and system data.
  • User imports a malicious notebook archive.
  • Script execution on the user's desktop.

Operational Fix

Recommended remediation, mitigation, and detection steps

The SiYuan application's stored cross-site scripting vulnerability in its unused asset cleanup dialog for encrypted notebooks likely falls under the responsibility of individual users who import malicious archives, as it's a desktop client application. The immediate practical move is to confirm if any user has imported an affected notebook archive and opened the cleanup dialog, thereby exposing their local files.

  • User impact must be confirmed first.
  • Identify affected users and notebooks.
  • Plan remediation based on user action.

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 note-taking application designed for personal knowledge management. It features a block-based editor and supports end-to-end encryption for notebooks. Users primarily run it as a local desktop client to maintain data sovereignty, meaning their files remain on their own hardware rather than relying on a centralized cloud service.

What is the stored XSS vulnerability in CVE-2026-145038?

This vulnerability is classified as CWE-79, or stored cross-site scripting. In this case, the application fails to treat asset names within an encrypted notebook archive as plain text. Because the software renders these names directly in the interface, an attacker can embed malicious scripts that run automatically when the application processes them, effectively bypassing intended security boundaries.

How is this vulnerability triggered?

The attack requires a two-step process: first, a user must manually import a malicious notebook archive created by an attacker. Second, the user must open the unused asset cleanup dialog within the application. Simply having an archive in your possession or opening a normal notebook does not trigger the bug; the script only executes when the specific, vulnerable cleanup interface parses the crafted file names.

Is my installation at risk according to Halo Surface Signal?

Halo Surface Signal indicates that exploitation is very unlikely because SiYuan is typically a local desktop tool rather than a public-facing network service. Since the software does not expose an internet-accessible attack surface that attackers can reach remotely, the risk is confined to individual users who might be tricked into importing untrusted third-party archives.

What are the first steps to address this issue?

The primary defense is to avoid importing notebook archives from untrusted or unknown sources. If you have already imported archives from external parties, verify if you have accessed the asset cleanup dialog for those specific notebooks. Prioritize updating your SiYuan client to version 3.8.11 or later, as this version contains the necessary fixes to properly sanitize asset names.

References