CVE-2026-59833

SiYuan: Stored XSS to RCE in SiYuan via a per-attribute URL-scheme sanitizer gap in Lute (form action / SVG xlink:href)

Published Jul 9, 2026 CVSS 4.0 · 8.6 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 August 1, 2026 at 13:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Siyuan
Siyuan siyuan
Vendors & Products Siyuan
Siyuan siyuan
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'}

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')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 10, 2026, 2:17 PM
Reserved
Jul 7, 2026, 3:00 PM
Status
Deferred
Published
Jul 9, 2026, 11:17 PM
Modified
Oct 25, 2026, 3:10 PM