Description
SiYuan is an open-source personal knowledge management system. Prior to 3.7.1, SiYuan renders note and package content to HTML through the Lute engine with sanitization enabled, but Lute's dangerous javascript scheme block does not check form action or SVG xlink:href attributes, allowing stored cross-site scripting in document export-preview and Bazaar package README render paths that can execute OS commands in the Electron desktop renderer. This issue is fixed in versions 3.7.1.
Published: 2026-07-09
Score: 8.6 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SiYuan stores note and package content and then renders it to HTML using the Lute engine with sanitization enabled. The Lute sanitizer efficiently removes dangerous JavaScript schemes from most attributes, but it does not check the form action or SVG xlink:href attributes, allowing an attacker to embed a JavaScript URL in a stored document that is later rendered during an export preview or when a Bazaar package README is displayed. Once rendered in the Electron desktop renderer, the malicious script can invoke operating‑system commands, giving the attacker full remote code execution over the affected machine. The vulnerability stems from improper sanitization (CWE‑79 poor handling of encoding (CWE‑116), with a potential impact of compromising the confidentiality, integrity, and availability of the host system).

Affected Systems

SiYuan Note, an open‑source personal knowledge management system, is affected in all releases prior to version 3.7.1.

Risk and Exploitability

The CVSS score of 8.6 classifies this flaw as high severity, and the EPSS score of < 1% indicates a very low but non‑zero exploitation probability. It is not listed in the CISA KEV catalog, suggesting the flaw is not actively leveraged in the wild yet. Exploitation requires the attacker to have the ability to place malicious content into the application’s storage (e.g., by creating or editing a note or uploading a Bazaar package). Once a relevant document is rendered—such as during a user’s providing an indirect path to remote code execution.

Generated by OpenCVE AI on July 29, 2026 at 11:43 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade SiYuan to version 3.7.1 or later to apply the vendor‑released fix that blocks all form action and SVG xlink:href URL schemes.
  • After the upgrade, review and delete any notes or Bazaar packages that previously contained JavaScript URLs or suspicious scripts, then re‑import or rewrite them securely.
  • If upgrading immediately is impossible, stop rendering untrusted documents or disable the export‑preview and README render paths until the update cuts off the execution vector.

Generated by OpenCVE AI on July 29, 2026 at 11:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 10 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 10 Jul 2026 09:15:00 +0000

Type Values Removed Values Added
First Time appeared Siyuan
Siyuan siyuan
Vendors & Products Siyuan
Siyuan siyuan

Thu, 09 Jul 2026 22:45:00 +0000

Type Values Removed Values Added
Description SiYuan is an open-source personal knowledge management system. Prior to 3.7.1, SiYuan renders note and package content to HTML through the Lute engine with sanitization enabled, but Lute's dangerous javascript scheme block does not check form action or SVG xlink:href attributes, allowing stored cross-site scripting in document export-preview and Bazaar package README render paths that can execute OS commands in the Electron desktop renderer. This issue is fixed in versions 3.7.1.
Title SiYuan: Stored XSS to RCE in SiYuan via a per-attribute URL-scheme sanitizer gap in Lute (form action / SVG xlink:href)
Weaknesses CWE-116
CWE-79
CWE-94
References
Metrics cvssV4_0

{'score': 8.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-10T14:17:16.135Z

Reserved: 2026-07-07T15:00:50.979Z

Link: CVE-2026-59833

cve-icon Vulnrichment

Updated: 2026-07-10T14:15:13.260Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T11:45:03Z

Weaknesses
  • CWE-116

    Improper Encoding or Escaping of Output

  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')