Description
SiYuan through 3.7.3 contains a cross-site scripting vulnerability in the '((' block-reference autocomplete hint popup. In genHintItemHTML() (app/src/protyle/hint/extend.ts), a candidate block's name, alias, and memo fields are concatenated into the popup's HTML without escaping. An attacker who can set these metadata fields on a block can inject a self-firing payload (e.g. <img src=x onerror=...>) that executes automatically when a victim types '((' followed by a search term that surfaces the crafted block. Because SiYuan's Electron windows run with nodeIntegration enabled, contextIsolation disabled, and no CSP, the injected script gains require('child_process') access, allowing the XSS to escalate to arbitrary OS command execution.
Published: 2026-08-19
Score: 9.3 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SiYuan through version 3.7.3 stores block metadata fields—name, alias, and memo—directly into the HTML of an autocomplete hint popup that appears when a user types '(('. The code responsible for building this popup fails to escape the metadata, which allows an attacker who can set these fields to embed a self‑executing payload such as <img src=x onerror=…>. When the victim opens the application and triggers the hint popup, the injected script runs automatically. Because the underlying Electron environment enables nodeIntegration, disables contextIsolation, and lacks a Content Security Policy, the script can leverage Node’s child_process module to execute arbitrary operating‑system commands, effectively turning the XSS into a remote‑code‑execution flaw.

Affected Systems

The vulnerability is present in the Siyuan Note application, as distributed by siyuan-note:siyuan, for all releases up to and including 3.7.3. Users of version 3.7.3 or earlier should upgrade to the patched release before it is widely deployed.

Risk and Exploitability

The flaw carries a CVSS score of 9.3, indicating a high likelihood of severe impact. EPSS score of < 1% indicates a low probability of exploitation, and the vulnerability is not currently listed in the CISA KEV catalog. The likely attack path requires the attacker to influence block metadata that a victim later opens with Siyuan; the victim must then edit text that triggers the hint popup. Given the absence of a remote trigger, the hazard is primarily local but could be leveraged through social engineering or malicious file sharing. Successful exploitation would grant the attacker full control over the victim’s host system.

Generated by OpenCVE AI on August 20, 2026 at 16:38 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Install the latest Siyuan Note release (3.7.4 or newer) which removes the unescaped metadata issue.
  • Avoid opening or sharing documents that contain untrusted block metadata until the update is applied.
  • When possible, adjust the Electron configuration of the application to disable nodeIntegration, enable contextIsolation, and enforce a Content Security Policy to prevent script execution from untrusted sources.

Generated by OpenCVE AI on August 20, 2026 at 16:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 21 Aug 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 19 Aug 2026 14:15:00 +0000

Type Values Removed Values Added
Description SiYuan through 3.7.3 contains a cross-site scripting vulnerability in the '((' block-reference autocomplete hint popup. In genHintItemHTML() (app/src/protyle/hint/extend.ts), a candidate block's name, alias, and memo fields are concatenated into the popup's HTML without escaping. An attacker who can set these metadata fields on a block can inject a self-firing payload (e.g. <img src=x onerror=...>) that executes automatically when a victim types '((' followed by a search term that surfaces the crafted block. Because SiYuan's Electron windows run with nodeIntegration enabled, contextIsolation disabled, and no CSP, the injected script gains require('child_process') access, allowing the XSS to escalate to arbitrary OS command execution.
Title SiYuan XSS-to-RCE via unescaped block metadata in hint popup
First Time appeared B3log
B3log siyuan
Weaknesses CWE-79
CPEs cpe:2.3:a:b3log:siyuan:-:*:*:*:*:*:*:*
Vendors & Products B3log
B3log siyuan
References
Metrics cvssV3_1

{'score': 8.6, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H'}

cvssV4_0

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


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-21T19:22:16.263Z

Reserved: 2026-08-18T15:05:54.226Z

Link: CVE-2026-75916

cve-icon Vulnrichment

Updated: 2026-08-21T19:22:10.799Z

cve-icon NVD

Status : Deferred

Published: 2026-08-19T14:17:41.687

Modified: 2026-08-26T17:07:30.163

Link: CVE-2026-75916

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-20T16:45:16Z

Weaknesses
  • CWE-79

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