Description
SiYuan is an open-source personal knowledge management system. Prior to 3.7.1, Asset.render in app/src/asset/index.ts interpolates the unsanitized this.path value into HTML assigned to innerHTML, allowing a crafted asset link containing a double quote to break out of the src attribute, inject an event handler, and execute JavaScript that can run OS commands in the Electron renderer. This issue is fixed in versions 3.7.1-alpha.2 and 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’s Asset.render routine places the asset path directly into an HTML element’s innerHTML without sanitizing the value. A crafted asset link that contains a "double quote" can terminate the src attribute and inject an event handler, allowing the attacker to run arbitrary JavaScript within the Electron renderer. The injected script has the capability to execute OS commands, thereby providing full control over the host machine. This flaw therefore results in remote code execution with the privileges of the Electron renderer process.

Affected Systems

The vulnerability exists in releases of the prior to version 3.7.1. The issue was addressed in the 3.7.1‑alpha.2 and 3.7.1 stable releases. Users running earlier versions of Siyuan should be aware that asset links containing "double quotes" can be used to trigger the flaw.

Risk and Exploitability

The CVSS score of 8.6 classifies the vulnerability as high severity. The EPSS score of < 1% indicates a very low but non-zero exploitation probability; however, the lack of a KEV listing does not diminish the risk posed by the ability to execute system commands from within the application. The attack vector is inferred from the description: a malicious payload can be delivered via a crafted asset link that a user opens in Siyuan, leading to execution of arbitrary code in the renderer process. Consequently, the risk is significant for any user who permits the loading of untrusted asset links. The vulnerability can be exploited without additional software or special network access, and it can affect all users of affected versions.

Generated by OpenCVE AI on July 26, 2026 at 14:28 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Siyuan to version 3.7.1 or later, which includes the fix for the Asset.render sanitization issue.
  • Remove or edit any existing asset links that contain unescaped double quotes so that they cannot be used to inject event handlers.
  • If an upgrade is pending, isolate the instance by innerHTML for assets, or purge the application’s asset cache until the patch is applied.

Generated by OpenCVE AI on July 26, 2026 at 14:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 14 Jul 2026 02:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 10 Jul 2026 09:30: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, Asset.render in app/src/asset/index.ts interpolates the unsanitized this.path value into HTML assigned to innerHTML, allowing a crafted asset link containing a double quote to break out of the src attribute, inject an event handler, and execute JavaScript that can run OS commands in the Electron renderer. This issue is fixed in versions 3.7.1-alpha.2 and 3.7.1.
Title SiYuan: Store XSS To Rce via Asset.render
Weaknesses CWE-80
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-14T01:24:09.004Z

Reserved: 2026-07-07T15:41:53.606Z

Link: CVE-2026-59855

cve-icon Vulnrichment

Updated: 2026-07-14T01:23:59.608Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-26T14:30:03Z

Weaknesses
  • CWE-80

    Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)